Ignore:
Timestamp:
May 15, 2011, 6:22:08 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor a few image methods so that they use vec2i.

File:
1 edited

Legend:

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

    r643 r655  
    9797  last_sel=newx;
    9898
    99   screen->bar(x,y,x+l-1,y+h-1,wm->black());
     99  screen->Bar(vec2i(x, y), vec2i(x + l - 1, y + h - 1), wm->black());
    100100  for (int i=newx; i<newx+th*wid; i++)
    101101  {
     
    118118          if (rev)
    119119          {
    120         screen->bar(xo,yo,xo+xw-1,yo+ya-1,wm->bright_color());
     120        screen->Bar(vec2i(xo, yo), vec2i(xo + xw - 1, yo + ya - 1),
     121                    wm->bright_color());
    121122        scale_put_trans(&im,screen,xo,yo,xw,ya);
    122123          }
     
    140141
    141142      if (i==c)
    142         screen->rectangle(xo,yo,xo+xw-1,yo+ya-1,wm->bright_color());
     143        screen->Rectangle(vec2i(xo, yo), vec2i(xo + xw - 1, yo + ya - 1),
     144                          wm->bright_color());
    143145
    144146
Note: See TracChangeset for help on using the changeset viewer.