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/profile.cpp

    r644 r655  
    122122  float time_scaler=(float)max_bar_length/prof_list[0].total_time;
    123123
    124   prof_win->m_surf->bar(0,prof_win->y1(),prof_win->m_surf->Size().x-1,prof_win->m_surf->Size().y,0);
     124  prof_win->m_surf->Bar(vec2i(0, prof_win->y1()),
     125                        vec2i(prof_win->m_surf->Size().x - 1,
     126                              prof_win->m_surf->Size().y), 0);
    125127  int dy = 0;
    126128  for (; i<prof_height; i++)
    127129  {
    128130    console_font->put_string(prof_win->m_surf,spliter+1,dy,object_names[prof_list[i].otype]);
    129     prof_win->m_surf->bar(spliter-1-(int)(prof_list[i].total_time*time_scaler),dy+1,
    130               spliter-1,
    131               dy+console_font->height()-1,wm->bright_color());
     131    prof_win->m_surf->Bar(vec2i(spliter - 1 - (int)(prof_list[i].total_time * time_scaler), dy + 1),
     132                          vec2i(spliter - 1, dy + console_font->height() - 1),
     133                          wm->bright_color());
    132134    dy+=console_font->height()+1;
    133135  }
Note: See TracChangeset for help on using the changeset viewer.