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

    r650 r655  
    475475    int w=wm->font()->width()*strlen(msg),h=wm->font()->height();
    476476    int x=(x1+x2)/2-w/2,y=(y1+y2)/2-h/2;
    477     main_screen->bar(x-10,y-10,x+w+10,y+h+10,wm->bright_color());
    478     main_screen->bar(x-9,y-9,x+w+9,y+h+9,wm->medium_color());
     477    main_screen->Bar(vec2i(x - 10, y - 10), vec2i(x + w + 10, y + h + 10),
     478                     wm->bright_color());
     479    main_screen->Bar(vec2i(x - 9, y - 9), vec2i(x + w + 9, y + h + 9),
     480                     wm->medium_color());
    479481
    480482    wm->font()->put_string(main_screen,x+1,y+1,msg,wm->dark_color());
Note: See TracChangeset for help on using the changeset viewer.