Ignore:
Timestamp:
Apr 20, 2011, 9:02:21 PM (12 years ago)
Author:
Sam Hocevar
Message:

imlib: image::Pixel and image::PutPixel? now use vec2i arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/automap.cpp

    r512 r515  
    6262  if (draw_xstart==old_dx && draw_ystart==old_dy)
    6363  {
    64    automap_window->screen->lock();
     64   automap_window->screen->Lock();
    6565   automap_window->screen->add_dirty(centerx,centery,centerx,centery);
    6666    if ((tick++)&4)
    67       automap_window->screen->putpixel(centerx,centery,255);
     67      automap_window->screen->PutPixel(vec2i(centerx,centery),255);
    6868    else
    69       automap_window->screen->putpixel(centerx,centery,27);
    70    automap_window->screen->unlock();
     69      automap_window->screen->PutPixel(vec2i(centerx,centery),27);
     70   automap_window->screen->Unlock();
    7171    return ;
    7272  }
     
    136136      else
    137137        screen->bar(i,j,i+AUTOTILE_WIDTH-1,j+AUTOTILE_HEIGHT-1,0);
    138 
    139 
    140     }
    141 
    142   }
    143 
     138    }
     139  }
    144140
    145141  // draw the person as a dot, no need to add a dirty because we marked the
    146142  // whole screen already
    147   automap_window->screen->lock();
     143  automap_window->screen->Lock();
    148144  if ((tick++)&4)
    149     automap_window->screen->putpixel(centerx,centery,255);
     145    automap_window->screen->PutPixel(vec2i(centerx,centery),255);
    150146  else
    151     automap_window->screen->putpixel(centerx,centery,27);
    152   automap_window->screen->unlock();
     147    automap_window->screen->PutPixel(vec2i(centerx,centery),27);
     148  automap_window->screen->Unlock();
    153149
    154150  // set the clip back to full window size because soemthing else could mess with the area
    155151  automap_window->screen->set_clip(0,0,screen->Size().x-1,screen->Size().y-1);
    156152}
    157 
    158153
    159154void automap::toggle_window()
Note: See TracChangeset for help on using the changeset viewer.