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/imlib/morph.cpp

    r112 r115  
    3333  {
    3434    morph_point8 *m8=(morph_point8 *)p;
     35    screen->lock();
    3536    for (i=0;i<total;i++,m8++)
    3637    {
     
    5051      }           
    5152    }
     53    screen->unlock();
    5254  }   
    5355}
     
    6264  short cx1,cy1,cx2,cy2;
    6365  screen->get_clip(cx1,cy1,cx2,cy2);   
     66  screen->lock();
    6467  while (tot--)
    6568  {
     
    7679    }
    7780  }     
     81  screen->unlock();
    7882}
    7983
     
    8589  short cx1,cy1,cx2,cy2;
    8690  screen->get_clip(cx1,cy1,cx2,cy2);   
     91  screen->lock();
    8792  while (tot--)
    8893  {
     
    99104    }
    100105  }     
     106  screen->unlock();
    101107}
    102108
Note: See TracChangeset for help on using the changeset viewer.