Ignore:
Timestamp:
May 15, 2011, 6:22:08 AM (12 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/image.h

    r653 r655  
    125125                       int16_t x2, int16_t y2);
    126126    image *copy_part_dithered(int16_t x1, int16_t y1, int16_t x2, int16_t y2);
    127     void bar(int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint8_t color);
     127    void Bar(vec2i p1, vec2i p2, uint8_t color);
    128128    void xor_bar(int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint8_t color);
    129     void widget_bar(int16_t x1, int16_t y1, int16_t x2, int16_t y2,
    130                     uint8_t light, uint8_t med, uint8_t dark);
    131     void line(int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint8_t color);
    132     void rectangle(int16_t x1, int16_t y1, int16_t x2, int16_t y2,
    133                    uint8_t color);
     129    void WidgetBar(vec2i p1, vec2i p2,
     130                   uint8_t light, uint8_t med, uint8_t dark);
     131    void Line(vec2i p1, vec2i p2, uint8_t color);
     132    void Rectangle(vec2i p1, vec2i p2, uint8_t color);
    134133    void burn_led(int16_t x, int16_t y, int32_t num, int16_t color,
    135134                  int16_t scale = 1);
Note: See TracChangeset for help on using the changeset viewer.