Ignore:
Timestamp:
Apr 15, 2011, 6:45:45 PM (10 years ago)
Author:
Sam Hocevar
Message:

sdlport: do not hardcode screen size in event handlers, patch courtesy
of Jochen Schleu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/sdlport/mouse.cpp

    r134 r477  
    9797{
    9898    // Make sure the values we are given are sensible.
    99     if( new_mx > 319 )
     99    if( new_mx > screen->width() - 1 )
    100100    {
    101         new_mx = 319;
     101        new_mx = screen->width() - 1;
    102102    }
    103     if( new_my > 199 )
     103    if( new_my > screen->height() - 1 )
    104104    {
    105         new_my = 199;
     105        new_my = screen->height() - 1;
    106106    }
    107107
Note: See TracChangeset for help on using the changeset viewer.