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

    r653 r655  
    802802    the_game->game_to_mouse(a->x,a->y,v,sx1,sy1);
    803803    the_game->game_to_mouse(a->x+a->w,a->y+a->h,v,sx2,sy2);
    804     main_screen->rectangle(sx1,sy1,sx2,sy2,c1);
    805     main_screen->bar(sx1-1,sy1-1,sx1+1,sy1+1,c2);
    806     main_screen->bar(sx2-1,sy2-1,sx2+1,sy2+1,c2);
     804    main_screen->Rectangle(vec2i(sx1, sy1), vec2i(sx2, sy2), c1);
     805    main_screen->Bar(vec2i(sx1 - 1, sy1 - 1), vec2i(sx1 + 1, sy1 + 1), c2);
     806    main_screen->Bar(vec2i(sx2 - 1, sy2 - 1), vec2i(sx2 + 1, sy2 + 1), c2);
    807807  }
    808808}
Note: See TracChangeset for help on using the changeset viewer.