Changeset 512 for abuse/trunk/src/sdlport/event.cpp
- Timestamp:
- Apr 20, 2011, 12:39:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/sdlport/event.cpp
r494 r512 22 22 23 23 #include <SDL.h> 24 25 #include "common.h" 24 26 25 27 #include "system.h" … … 375 377 x = (x << 16) / mouse_xscale; 376 378 y = (y << 16) / mouse_yscale; 377 if( x > screen-> width()- 1 )378 { 379 x = screen-> width()- 1;380 } 381 if( y > screen-> height()- 1 )382 { 383 y = screen-> height()- 1;379 if( x > screen->Size().x - 1 ) 380 { 381 x = screen->Size().x - 1; 382 } 383 if( y > screen->Size().y - 1 ) 384 { 385 y = screen->Size().y - 1; 384 386 } 385 387 ev.mouse_move.x = x;
Note: See TracChangeset
for help on using the changeset viewer.