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

    r494 r512  
    1111#include "config.h"
    1212
     13#include "common.h"
     14
    1315#include "transp.h"
    1416
     
    1719  short cx1,cy1,cx2,cy2;
    1820  screen->get_clip(cx1,cy1,cx2,cy2);
    19   int xs=0,ys=0,xl=im->width(),yl=im->height();
     21  int xs=0,ys=0,xl=im->Size().x,yl=im->Size().y;
    2022  if (x<cx1)
    2123  {
     
    4547  uint8_t *isl=im->scan_line(ys)+xs;
    4648  uint8_t *ssl=screen->scan_line(y)+x;
    47   int iw=im->width(),sw=screen->width();
     49  int iw=im->Size().x,sw=screen->Size().x;
    4850
    4951  for (int iy=ys; iy<ye; iy++,y++,isl+=iw,ssl+=sw)
Note: See TracChangeset for help on using the changeset viewer.