Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibevents.c @ 4232:29605c881b29 SDL-1.2
Fixed compile error on Win32
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 22 Sep 2009 02:42:11 +0000 |
parents | cf958451fd8d |
children | cbe5222d051a |
comparison
equal
deleted
inserted
replaced
4231:2d5c44f1be14 | 4232:29605c881b29 |
---|---|
321 { | 321 { |
322 extern int mouse_relative; | 322 extern int mouse_relative; |
323 extern int posted; | 323 extern int posted; |
324 | 324 |
325 POINT mouse; | 325 POINT mouse; |
326 if(!GetCursorPos( &mouse ) && !GetLastStylusPos( &mouse )) return; | 326 #ifdef _WIN32_WCE |
327 if ( !GetCursorPos(&mouse) && !GetLastStylusPos(&mouse) ) return; | |
328 #else | |
329 if ( !GetCursorPos(&mouse) ) return; | |
330 #endif | |
327 | 331 |
328 if ( mouse_relative ) { | 332 if ( mouse_relative ) { |
329 POINT center; | 333 POINT center; |
330 center.x = (SDL_VideoSurface->w/2); | 334 center.x = (SDL_VideoSurface->w/2); |
331 center.y = (SDL_VideoSurface->h/2); | 335 center.y = (SDL_VideoSurface->h/2); |