Ignore:
Timestamp:
Apr 22, 2011, 4:13:08 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: merge almost all trans_image blit methods into one large template
function and refactor them for size.

File:
1 edited

Legend:

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

    r523 r528  
    576576      screen->GetClip(cx1, cy1, cx2, cy2);
    577577      screen->SetClip(viewx1, viewy1, viewx2 + 1, viewy2 + 1);
    578       im->put_image(screen, (x - xoff / ftile_width())*ftile_width()+viewx1 - xoff % ftile_width(),
     578      im->PutImage(screen, (x - xoff / ftile_width())*ftile_width()+viewx1 - xoff % ftile_width(),
    579579            (y - yoff / ftile_height())*ftile_height()+viewy1 - yoff % ftile_height());
    580580      screen->SetClip(cx1, cy1, cx2, cy2);
     
    947947          {
    948948        if(draw_y < ncy1 || draw_y + yinc > ncy2 || draw_x < ncx1 || draw_x + xinc > ncx2)
    949             get_fg(fort_num)->im->put_image(screen, draw_x, draw_y);
     949            get_fg(fort_num)->im->PutImage(screen, draw_x, draw_y);
    950950        else
    951951            get_fg(fort_num)->im->put_image_offseted(screen, sl1);
     
    991991        {
    992992          if(dev & DRAW_BG_LAYER)
    993           get_fg(fort_num)->im->put_image(screen, draw_x, draw_y);
     993          get_fg(fort_num)->im->PutImage(screen, draw_x, draw_y);
    994994          else
    995           get_fg(fort_num)->im->put_image_filled(screen, draw_x, draw_y, 0);
     995          get_fg(fort_num)->im->PutFilled(screen, draw_x, draw_y, 0);
    996996
    997997          if(!(dev & EDIT_MODE))
Note: See TracChangeset for help on using the changeset viewer.