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
This commit is contained in:
parent
0119497f3a
commit
af64786472
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue