Ignore:
Timestamp:
Aug 17, 2013, 12:01:38 PM (9 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor the image class; no more locks or paging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/branches/lol/src/automap.cpp

    r691 r709  
    2323{
    2424  if (!automap_window) return ;
    25   image *screen=automap_window->m_surf;
     25  AImage *screen=automap_window->m_surf;
    2626
    2727  long sx,ex,sy,ey,x,y,window_xstart,window_ystart,
     
    6363  if (draw_xstart==old_dx && draw_ystart==old_dy)
    6464  {
    65    automap_window->m_surf->Lock();
    6665   automap_window->m_surf->AddDirty(center, center + ivec2(1));
    6766    if ((tick++)&4)
     
    6968    else
    7069      automap_window->m_surf->PutPixel(center, 27);
    71    automap_window->m_surf->Unlock();
    7270    return ;
    7371  }
     
    141139  // draw the person as a dot, no need to add a dirty because we marked the
    142140  // whole screen already
    143   automap_window->m_surf->Lock();
    144141  if ((tick++)&4)
    145142    automap_window->m_surf->PutPixel(center, 255);
    146143  else
    147144    automap_window->m_surf->PutPixel(center, 27);
    148   automap_window->m_surf->Unlock();
    149145
    150146  // 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.