Ignore:
Timestamp:
May 15, 2011, 5:32:56 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor GetClip?, SetClip? etc. to use vec2i.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/jwindow.h

    r659 r665  
    113113    int x2() { return _x2; }
    114114    int y2() { return _y2; }
    115     void clip_in() { m_surf->SetClip(x1(), y1(), x2() + 1, y2() + 1); }
    116     void clip_out() { m_surf->SetClip(0, 0, l, h); }
     115    void clip_in() { m_surf->SetClip(vec2i(x1(), y1()), vec2i(x2() + 1, y2() + 1)); }
     116    void clip_out() { m_surf->SetClip(vec2i(0), vec2i(l, h)); }
    117117    char *read(int id) { return inm->get(id)->read(); }
    118118    void local_close();
Note: See TracChangeset for help on using the changeset viewer.