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/imlib/tools.cpp

    r579 r655  
    5454void tool_picker::draw_item(image *screen, int x, int y, int num, int active)
    5555{
    56   if (!active)
    57     screen->bar(x,y,x+iw-1,y+ih-1,wm->black());
    58   else
    59     screen->bar(x,y,x+iw-1,y+ih-1,wm->bright_color());
    60   icons[num]->draw(screen,x,y,map);
     56    screen->Bar(vec2i(x, y), vec2i(x + iw - 1, y + ih - 1),
     57                active ? wm->bright_color() : wm->black());
     58    icons[num]->draw(screen, x, y, map);
    6159}
    6260
Note: See TracChangeset for help on using the changeset viewer.