summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-13 14:10:15 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-13 14:10:15 +0000
commit821732ebbc2760ec98e0097f38a962c67285d421 (patch)
tree2e4fbb5b22108bf6d71011541acb927e9f633a5e /src/main.cpp
parent6c5351a2cbe2655a6b255cb882ade9e6f988c0ea (diff)
downloadmana-821732ebbc2760ec98e0097f38a962c67285d421.tar.gz
mana-821732ebbc2760ec98e0097f38a962c67285d421.tar.bz2
mana-821732ebbc2760ec98e0097f38a962c67285d421.tar.xz
mana-821732ebbc2760ec98e0097f38a962c67285d421.zip
Allow preservation of alpha channel when loading image resources, which is used
to load alpha blended mouse cursor, which is now drawn instead of using the system cursor.
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);