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/mouse.cpp

    r494 r512  
    2222
    2323#include <SDL.h>
     24
     25#include "common.h"
    2426
    2527#include "video.h"
     
    6466    f.apply( im );
    6567    sp = new sprite( Screen, im, 100, 100 );
    66     mx = Screen->width() / 2;
    67     my = Screen->height() / 2;
     68    mx = Screen->Size().x / 2;
     69    my = Screen->Size().y / 2;
    6870}
    6971
     
    98100{
    99101    // Make sure the values we are given are sensible.
    100     if( new_mx > screen->width() - 1 )
     102    if( new_mx > screen->Size().x - 1 )
    101103    {
    102         new_mx = screen->width() - 1;
     104        new_mx = screen->Size().x - 1;
    103105    }
    104     if( new_my > screen->height() - 1 )
     106    if( new_my > screen->Size().y - 1 )
    105107    {
    106         new_my = screen->height() - 1;
     108        new_my = screen->Size().y - 1;
    107109    }
    108110
Note: See TracChangeset for help on using the changeset viewer.