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

    r111 r115  
    5959  if (draw_xstart==old_dx && draw_ystart==old_dy) 
    6060  {
     61   automap_window->screen->lock();
    6162   automap_window->screen->add_dirty(centerx,centery,centerx,centery);
    6263    if ((tick++)&4)
     
    6465    else
    6566      automap_window->screen->putpixel(centerx,centery,27);
     67   automap_window->screen->unlock();
    6668    return ;   
    6769  }
     
    138140
    139141
    140   // draw the person as a dot, no need to add a dirty because we marked the whole screen already
     142  // draw the person as a dot, no need to add a dirty because we marked the
     143  // whole screen already
     144  automap_window->screen->lock();
    141145  if ((tick++)&4)
    142146    automap_window->screen->putpixel(centerx,centery,255);
    143147  else
    144148    automap_window->screen->putpixel(centerx,centery,27);
     149  automap_window->screen->unlock();
    145150
    146151  // set the clip back to full window size because soemthing else could mess with the area
Note: See TracChangeset for help on using the changeset viewer.