Ignore:
Timestamp:
Mar 16, 2008, 10:51:54 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Add lock() and unlock() methods to jimage objects. They're no-ops, but the Win32/DirectX version uses them all over the place because it uses DirectDraw? surfaces. One day we may wish to merge Abuse Win32's video output, or to use the SDL blending functions. You never know.
File:
1 edited

Legend:

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

    r113 r115  
    4949  percent=256-percent;
    5050
     51  screen->lock();
    5152  for (y=y1;y<=y2;y++)
    5253  {
     
    6263  }
    6364  screen->add_dirty(x1,y1,x2,y2); 
     65  screen->unlock();
    6466}
    6567
     
    7577  if (x2<x1 || y2<y1) return ;
    7678
     79  screen->lock();
    7780  for (y=y1;y<=y2;y++)
    7881  {
     
    8891  }
    8992  screen->add_dirty(x1,y1,x2,y2);
     93  screen->unlock();
    9094}
    9195
Note: See TracChangeset for help on using the changeset viewer.