Ignore:
Timestamp:
May 14, 2011, 3:06:23 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: make some Image methods use vec2i.

File:
1 edited

Legend:

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

    r644 r650  
    110110#if 0
    111111  for (i=draw_xstart,j=draw_ystart,x=sx,y=sy; y<=ey; j+=AUTOTILE_HEIGHT,y++)
    112     screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, i, j, 0);
     112    screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, vec2i(i, j), 0);
    113113
    114114  for (i=draw_xstart+ex*AUTOTILE_WIDTH,j=draw_ystart,y=sy,x=ex; y<=ey; j+=AUTOTILE_HEIGHT,y++)
    115     screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, i, j, 0);
     115    screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, vec2i(i, j), 0);
    116116
    117117  for (i=draw_xstart,j=draw_ystart,x=sx,y=sy; x<=ex; i+=AUTOTILE_WIDTH,x++)
    118     screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, i, j, 0);
     118    screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, vec2i(i, j), 0);
    119119
    120120  for (i=draw_xstart,j=draw_ystart+ey*AUTOTILE_HEIGHT,x=sx,y=ex; x<=ex; i+=AUTOTILE_WIDTH,x++)
    121     screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, i, j, 0);
     121    screen->PutImage(foretiles[cur_lev->get_fg(x, y)]->micro_image, vec2i(i, j), 0);
    122122#endif
    123123
     
    132132    int id=foretiles[ (*fgline)&0x7fff];
    133133    if (id>=0)
    134           screen->PutImage(cache.foret(id)->micro_image, i, j, 0);
     134          screen->PutImage(cache.foret(id)->micro_image, vec2i(i, j), 0);
    135135    else
    136           screen->PutImage(cache.foret(foretiles[0])->micro_image, i, j, 0);
     136          screen->PutImage(cache.foret(foretiles[0])->micro_image, vec2i(i, j), 0);
    137137      }
    138138      else
Note: See TracChangeset for help on using the changeset viewer.