Ignore:
Timestamp:
May 15, 2011, 6:22:08 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor a few image methods so that they use vec2i.

File:
1 edited

Legend:

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

    r650 r655  
    8484
    8585
    86   screen->bar(window_xstart,window_ystart,draw_xstart,window_yend,0);
    87   screen->bar(window_xstart,window_ystart,window_xend,draw_ystart,0);
     86  screen->Bar(vec2i(window_xstart, window_ystart),
     87              vec2i(draw_xstart, window_yend), 0);
     88  screen->Bar(vec2i(window_xstart, window_ystart),
     89              vec2i(window_xend, draw_ystart), 0);
    8890
    8991
     
    137139      }
    138140      else
    139         screen->bar(i,j,i+AUTOTILE_WIDTH-1,j+AUTOTILE_HEIGHT-1,0);
     141        screen->Bar(vec2i(i, j),
     142                    vec2i(i + AUTOTILE_WIDTH - 1, j + AUTOTILE_HEIGHT - 1), 0);
    140143    }
    141144  }
     
    168171        automap_window = wm->new_window(0, 0, w * AUTOTILE_WIDTH,
    169172                                        h * AUTOTILE_HEIGHT, NULL, "Map");
    170         automap_window->m_surf->bar(17, 1, 17 + 8 * 6 + 3, 6,
     173        automap_window->m_surf->Bar(vec2i(17, 1), vec2i(17 + 8 * 6 + 3, 6),
    171174                                    wm->medium_color());
    172175        wm->font()->put_string(automap_window->m_surf, 20, 2, "Automap",
Note: See TracChangeset for help on using the changeset viewer.