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

    r106 r115  
    16571657  fp->write_uint16(i->width());
    16581658  fp->write_uint16(i->height());
    1659   int y=0;
    1660   for (;y<i->height();y++)
     1659
     1660  i->lock();
     1661  for(int y = 0; y < i->height(); y++)
    16611662    fp->write(i->scan_line(y),i->width());
     1663  i->unlock();
    16621664
    16631665  delete i;
Note: See TracChangeset for help on using the changeset viewer.