Fix cursor initialization in pcedit. fix #118
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "dialogxml/widgets/led.hpp"
|
||||
#include "dialogxml/widgets/message.hpp"
|
||||
#include "mathutil.hpp"
|
||||
#include "tools/cursors.hpp"
|
||||
#ifndef MSBUILD_GITREV
|
||||
#include "tools/gitrev.hpp"
|
||||
#endif
|
||||
@@ -209,6 +210,7 @@ void redraw_screen() {
|
||||
drawMenuBar();
|
||||
|
||||
mainPtr().display();
|
||||
restore_cursor();
|
||||
}
|
||||
|
||||
static void frame_dlog_rect(sf::RenderWindow& target, rectangle rect) {
|
||||
|
@@ -139,6 +139,7 @@ int main(int argc, char* argv[]) {
|
||||
cDialog::init();
|
||||
redraw_screen();
|
||||
menu_activate();
|
||||
set_cursor(sword_curs);
|
||||
|
||||
handle_events();
|
||||
|
||||
|
Reference in New Issue
Block a user