]> git.tdb.fi Git - libs/gui.git/commitdiff
Fix windows compilation
authorMikko Rasa <tdb@tdb.fi>
Tue, 30 Aug 2011 18:08:49 +0000 (21:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 30 Aug 2011 18:08:49 +0000 (21:08 +0300)
source/input/mouse.cpp

index 476275f4a77bc75024d254903abc3cb6ba74140f..cd89f94ad348a48efc7676fcfb52d9d4154a0b65 100644 (file)
@@ -1,3 +1,6 @@
+#ifdef WIN32
+#include <windowsx.h>
+#endif
 #include <msp/graphics/window.h>
 #include <msp/graphics/window_priv.h>
 #include <msp/strings/format.h>
@@ -68,7 +71,7 @@ void Mouse::input_event(const Graphics::Window::Event &event)
                break;
        case WM_MOUSEWHEEL:
                {
-                       unsigned btn = (HIWORD(wp)&0x8000) ? 5 : 4;
+                       unsigned btn = (HIWORD(event.wparam)&0x8000) ? 5 : 4;
                        set_button_state(btn, true, true);
                        set_button_state(btn, false, true);
                }