Ignore:
Timestamp:
Aug 11, 2009, 10:56:57 PM (13 years ago)
Author:
Sam Hocevar
Message:

Fix numerous compiler warnings.

File:
1 edited

Legend:

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

    r142 r162  
    4343unsigned char current_background;
    4444int win_xscale, win_yscale, mouse_xscale, mouse_yscale;
    45 unsigned int xres, yres;
     45int xres, yres;
    4646
    4747extern palette *lastl;
     
    238238    Uint16 dinset;
    239239
    240     if((unsigned)y > yres || (unsigned)x > xres)
     240    if(y > yres || x > xres)
    241241        return;
    242242
     
    250250    }
    251251    srcrect.x = x1;
    252     if((unsigned)(x + (x2 - x1)) >= xres)
     252    if(x + (x2 - x1) >= xres)
    253253        xe = xres - x + x1 - 1;
    254254    else
     
    261261    }
    262262    srcrect.y = y1;
    263     if((unsigned)(y + (y2 - y1)) >= yres)
     263    if(y + (y2 - y1) >= yres)
    264264        ye = yres - y + y1 - 1;
    265265    else
Note: See TracChangeset for help on using the changeset viewer.