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

    r90 r115  
    776776  light_patch *first=make_patch_list(cx2-cx1+1,cy2-cy1+1,screenx,screeny);
    777777
    778   int scr_w=screen->width();
    779 
    780778  int prefix_x=(screenx&7);
    781779  int prefix=screenx&7;
     
    791789
    792790  light_patch *f=first;
     791
     792  screen->lock();
     793
     794  int scr_w=screen->width();
    793795  uint8_t *screen_line=screen->scan_line(cy1)+cx1;
    794796
     
    880882
    881883    screen_line-=prefix;
    882 
    883 
    884 
    885   }
    886 
     884  }
     885  screen->unlock();
    887886
    888887  while (first)
Note: See TracChangeset for help on using the changeset viewer.