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

imlib: started refactoring the dirty rectangle system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/menu.cpp

    r668 r670  
    7070    }
    7171  }
    72   main_screen->AddDirty(x1, y1, x2 + 1, y2 + 1);
     72  main_screen->AddDirty(vec2i(x1, y1), vec2i(x2 + 1, y2 + 1));
    7373  main_screen->Unlock();
    7474}
     
    9797    }
    9898  }
    99   main_screen->AddDirty(x1, y1, x2 + 1, y2 + 1);
     99  main_screen->AddDirty(vec2i(x1, y1), vec2i(x2 + 1, y2 + 1));
    100100  main_screen->Unlock();
    101101}
     
    103103void dark_widget(int x1, int y1, int x2, int y2, int br, int dr, int amount)
    104104{
    105   main_screen->AddDirty(x1, y1, x2 + 1, y2 + 1);
     105  main_screen->AddDirty(vec2i(x1, y1), vec2i(x2 + 1, y2 + 1));
    106106  main_screen->Line(vec2i(x1, y1), vec2i(x1, y2), br);
    107107  main_screen->Line(vec2i(x1 + 1, y1), vec2i(x2, y1), br);
     
    153153
    154154
    155   main_screen->AddDirty(mx, my, mx + mw, my + mh);
     155  main_screen->AddDirty(vec2i(mx, my), vec2i(mx + mw, my + mh));
    156156
    157157  if (title)
     
    660660    inm->clear_current();
    661661
    662     main_screen->AddDirty(0, 0, 320, 200);
     662    main_screen->AddDirty(vec2i(0), vec2i(320, 200));
    663663
    664664    Event ev;
Note: See TracChangeset for help on using the changeset viewer.