Ignore:
Timestamp:
May 16, 2011, 2:37:27 AM (10 years ago)
Author:
Sam Hocevar
Message:

imlib: started refactoring the dirty rectangle system.

File:
1 edited

Legend:

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

    r555 r670  
    2525    CHECK(im->m_special);
    2626
    27     if(im->m_special->keep_dirt == 0)
     27    if (im->m_special->keep_dirt == 0)
    2828    {
    2929        put_image(im, xoff, yoff);
     
    3333        int count = im->m_special->dirties.Count();
    3434        dirty_rect *dr = (dirty_rect *)(im->m_special->dirties.first());
    35         while(count > 0)
     35        while (count > 0)
    3636        {
    37             put_part_image(im, xoff + dr->dx1, yoff + dr->dy1,
    38                            dr->dx1, dr->dy1, dr->dx2 + 1, dr->dy2 + 1);
     37            put_part_image(im, xoff + dr->m_aa.x, yoff + dr->m_aa.y,
     38                           dr->m_aa.x, dr->m_aa.y,
     39                           dr->m_bb.x + 1, dr->m_bb.y + 1);
    3940            dirty_rect *tmp = dr;
    4041            dr = (dirty_rect *)(dr->Next());
Note: See TracChangeset for help on using the changeset viewer.