Ignore:
Timestamp:
Apr 22, 2011, 7:32:01 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: remove trans_image::put_image_offseted, it's simply a version
of PutImage? that skips the bounds checks. Yaddah yaddah modern hardware
blah.

File:
1 edited

Legend:

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

    r528 r530  
    933933      cl = current_level->get_fgline(y)+x1;
    934934    else cl = NULL;
    935     uint8_t *sl1 = draw_y < ncy1 ? 0 : screen->scan_line(draw_y)+xo;
    936 
    937     for(x = x1, draw_x = xo; x <= x2; x++, draw_x += xinc, cl++, sl1 += xinc)
     935
     936    for(x = x1, draw_x = xo; x <= x2; x++, draw_x += xinc, cl++)
    938937    {
    939938      if(x < fg_w && y < fg_h)
     
    946945          if(fort_num != BLACK)
    947946          {
    948         if(draw_y < ncy1 || draw_y + yinc > ncy2 || draw_x < ncx1 || draw_x + xinc > ncx2)
    949947            get_fg(fort_num)->im->PutImage(screen, draw_x, draw_y);
    950         else
    951             get_fg(fort_num)->im->put_image_offseted(screen, sl1);
    952948
    953949        if(!(dev & EDIT_MODE))
Note: See TracChangeset for help on using the changeset viewer.