From: Mikko Rasa Date: Tue, 30 Aug 2011 18:08:49 +0000 (+0300) Subject: Fix windows compilation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4c43f46e8fae246416726c9efb71cf5e984d2e08;p=libs%2Fgui.git Fix windows compilation --- diff --git a/source/input/mouse.cpp b/source/input/mouse.cpp index 476275f..cd89f94 100644 --- a/source/input/mouse.cpp +++ b/source/input/mouse.cpp @@ -1,3 +1,6 @@ +#ifdef WIN32 +#include +#endif #include #include #include @@ -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); }