Ignore:
Timestamp:
May 13, 2011, 9:13:58 AM (12 years ago)
Author:
Sam Hocevar
Message:

imlib: reverse the image::put_image logic.

File:
1 edited

Legend:

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

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