Skip to content

Commit

Permalink
Fixed compile error on Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 22, 2009
1 parent a3a2714 commit 9638312
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/windib/SDL_dibevents.c
Expand Up @@ -323,7 +323,11 @@ static void DIB_GenerateMouseMotionEvent(_THIS)
extern int posted;

POINT mouse;
if(!GetCursorPos( &mouse ) && !GetLastStylusPos( &mouse )) return;
#ifdef _WIN32_WCE
if ( !GetCursorPos(&mouse) && !GetLastStylusPos(&mouse) ) return;
#else
if ( !GetCursorPos(&mouse) ) return;
#endif

if ( mouse_relative ) {
POINT center;
Expand Down

0 comments on commit 9638312

Please sign in to comment.