Ignore:
Timestamp:
May 14, 2011, 3:06:23 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: make some Image methods use vec2i.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/sprite.cpp

    r644 r650  
    2626void sprite::restore_background()
    2727{ if (x+save->Size().x>=0 && y+save->Size().y>=0 && x<=xres && y<=yres)
    28       screen->PutImage(save, x, y); }
     28      screen->PutImage(save, vec2i(x, y)); }
    2929
    3030void sprite::get_background()
     
    3434void sprite::draw()
    3535{ if (x+visual->Size().x>=0 && y+visual->Size().y>=0 && x<=xres && y<=yres)
    36    screen->PutImage(visual, x, y, 1); }
     36   screen->PutImage(visual, vec2i(x, y), 1); }
    3737
    3838sprite::sprite(image *Screen, image *Visual, int X, int Y)
Note: See TracChangeset for help on using the changeset viewer.