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

starting GetClip? refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/image.cpp

    r663 r664  
    2525                                   int keep_dirties, int static_memory)
    2626{
    27     m_clipx1 = 0; m_clipy1 = 0;
    28     m_l = size.x; m_h = size.y;
    29     m_clipx2 = m_l; m_clipy2 = m_h;
     27    m_aa = vec2i(0);
     28    m_bb = size;
     29    m_size = size;
     30
    3031    keep_dirt = keep_dirties;
    3132    static_mem = static_memory;
     
    506507        return;
    507508
    508     x1 = Max(0, x1); x2 = Min(m_l, x2);
    509     y1 = Max(0, y1); y2 = Min(m_h, y2);
     509    x1 = Max(0, x1); x2 = Min(m_size.x, x2);
     510    y1 = Max(0, y1); y2 = Min(m_size.y, y2);
    510511
    511512    if (x1 >= x2 || y1 >= y2)
     
    605606        return;
    606607
    607     x1 = Max(0, x1); x2 = Min(m_l, x2);
    608     y1 = Max(0, y1); y2 = Min(m_h, y2);
     608    x1 = Max(0, x1); x2 = Min(m_size.x, x2);
     609    y1 = Max(0, y1); y2 = Min(m_size.y, y2);
    609610
    610611    if (x1 >= x2 || y1 >= y2)
Note: See TracChangeset for help on using the changeset viewer.