From af6478647201ed4de13cef4224e3e44e777b51aa Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Thu, 27 May 2010 12:12:48 +0000 Subject: [PATCH] win_width/win_height are used in X11 builds as well. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5515 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/InputPluginCommon/Src/ControllerEmu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/InputPluginCommon/Src/ControllerEmu.cpp b/Source/Plugins/InputPluginCommon/Src/ControllerEmu.cpp index 22ec6b6960..6422f59eb4 100644 --- a/Source/Plugins/InputPluginCommon/Src/ControllerEmu.cpp +++ b/Source/Plugins/InputPluginCommon/Src/ControllerEmu.cpp @@ -295,9 +295,11 @@ ControllerEmu::Cursor::Cursor( const char* const _name, const SWiimoteInitialize void GetMousePos(float& x, float& y, const SWiimoteInitialize* const wiimote_initialize) { -#ifdef _WIN32 +#if ( defined(_WIN32) || (defined(HAVE_X11) && HAVE_X11)) unsigned int win_width = 2, win_height = 2; +#endif +#ifdef _WIN32 // Get the cursor position for the entire screen POINT point = { 1, 1 }; GetCursorPos(&point);