Ignore:
Timestamp:
Apr 20, 2011, 12:39:27 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: use vec2i for image::size and unroll all necessary changes
everywhere else in the code.

File:
1 edited

Legend:

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

    r494 r512  
    2222
    2323#include <SDL.h>
     24
     25#include "common.h"
    2426
    2527#include "system.h"
     
    375377    x = (x << 16) / mouse_xscale;
    376378    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;
    384386    }
    385387    ev.mouse_move.x = x;
Note: See TracChangeset for help on using the changeset viewer.