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/dev.cpp

    r113 r115  
    391391    new_height-=y+new_height-cy2;
    392392
    393 
     393  screen->lock();
     394  im->lock();
    394395  for (iy=iy_start;new_height>0;new_height--,y++,iy+=ystep)
    395396  {
     
    399400      *sl2=sl1[ix>>16];
    400401  }
     402  im->unlock();
     403  screen->unlock();
    401404}
    402405
     
    431434
    432435  uint8_t d;
     436  screen->lock();
    433437  for (iy=iy_start;new_height>0;new_height--,y++,iy+=ystep)
    434438  {
     
    442446    }
    443447  }
     448  screen->unlock();
    444449}
    445450
Note: See TracChangeset for help on using the changeset viewer.