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:
Soren Jorvang 2010-05-27 12:12:48 +00:00
parent 0119497f3a
commit af64786472
1 changed files with 3 additions and 1 deletions

View File

@ -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);