summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8944387a..7e67bafd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -59,7 +59,7 @@ unsigned char state;
unsigned short x, y;
unsigned char direction;
//unsigned short job, hair, hair_color;
-unsigned char stretch_mode, screen_mode;
+unsigned char screen_mode;
char *dir;
Sound sound;
@@ -176,7 +176,6 @@ void init_engine() {
#else
config.setValue("chatlog", "chatlog.txt");
#endif
- config.setValue("stretch", 1);
config.setValue("remember", 1);
config.setValue("username", "Player");
@@ -310,6 +309,12 @@ int main(int argc, char *argv[]) {
case SDL_QUIT:
state = EXIT;
break;
+
+ case SDL_MOUSEMOTION:
+ // Update the known mouse position
+ mouseX = event.motion.x;
+ mouseY = event.motion.y;
+ break;
}
guiInput->pushInput(event);