diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-13 14:10:15 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-13 14:10:15 +0000 |
commit | 821732ebbc2760ec98e0097f38a962c67285d421 (patch) | |
tree | 2e4fbb5b22108bf6d71011541acb927e9f633a5e /src/gui | |
parent | 6c5351a2cbe2655a6b255cb882ade9e6f988c0ea (diff) | |
download | mana-client-821732ebbc2760ec98e0097f38a962c67285d421.tar.gz mana-client-821732ebbc2760ec98e0097f38a962c67285d421.tar.bz2 mana-client-821732ebbc2760ec98e0097f38a962c67285d421.tar.xz mana-client-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/gui')
-rw-r--r-- | src/gui/char_select.cpp | 6 | ||||
-rw-r--r-- | src/gui/char_server.cpp | 6 | ||||
-rw-r--r-- | src/gui/login.cpp | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 5032b196..128fbf7c 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -441,6 +441,12 @@ void charSelect() 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); diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index c0f1c523..781f4a37 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -126,6 +126,12 @@ void char_server() { 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); diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 5496c01b..d0cfa899 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -147,6 +147,12 @@ void login() { state = EXIT; } break; + + case SDL_MOUSEMOTION: + // Update the known mouse position + mouseX = event.motion.x; + mouseY = event.motion.y; + break; } guiInput->pushInput(event); |