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

    r651 r655  
    106106{
    107107  main_screen->AddDirty(x1, y1, x2 + 1, y2 + 1);
    108   main_screen->line(x1,y1,x1,y2,br);
    109   main_screen->line(x1+1,y1,x2,y1,br);
    110   main_screen->line(x2,y1+1,x2,y2,dr);
    111   main_screen->line(x1+1,y2,x2,y2,dr);
    112   darken_area(x1+1,y1+1,x2-1,y2-1,amount);
     108  main_screen->Line(vec2i(x1, y1), vec2i(x1, y2), br);
     109  main_screen->Line(vec2i(x1 + 1, y1), vec2i(x2, y1), br);
     110  main_screen->Line(vec2i(x2, y1 + 1), vec2i(x2, y2), dr);
     111  main_screen->Line(vec2i(x1 + 1, y2), vec2i(x2, y2), dr);
     112  darken_area(x1 + 1, y1 + 1, x2 - 1, y2 - 1, amount);
    113113}
    114114
     
    243243      font->put_string(main_screen,mx+10+1,by1+3,cur,wm->black());
    244244      font->put_string(main_screen,mx+10,by1+2,cur,wm->bright_color());
    245       main_screen->rectangle(mx+1,by1,mx+mw-2,by2,wm->bright_color());
     245      main_screen->Rectangle(vec2i(mx + 1, by1), vec2i(mx + mw - 2, by2),
     246                             wm->bright_color());
    246247
    247248      color+=cdir;
Note: See TracChangeset for help on using the changeset viewer.