Ignore:
Timestamp:
May 15, 2011, 5:32:56 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor GetClip?, SetClip? etc. to use vec2i.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/automap.cpp

    r655 r665  
    109109  // we will slam on as fast as possible
    110110
    111   screen->SetClip(window_xstart, window_ystart, window_xend+1, window_yend+1);
     111  screen->SetClip(vec2i(window_xstart, window_ystart),
     112                  vec2i(window_xend + 1, window_yend + 1));
    112113#if 0
    113114  for (i=draw_xstart,j=draw_ystart,x=sx,y=sy; y<=ey; j+=AUTOTILE_HEIGHT,y++)
     
    154155
    155156  // set the clip back to full window size because soemthing else could mess with the area
    156   automap_window->m_surf->SetClip(0,0,screen->Size().x,screen->Size().y);
     157  automap_window->m_surf->SetClip(vec2i(0), screen->Size());
    157158}
    158159
Note: See TracChangeset for help on using the changeset viewer.