Ignore:
Timestamp:
May 16, 2011, 2:37:19 AM (12 years ago)
Author:
Sam Hocevar
Message:

imlib: make JCFont use vec2i classes.

File:
1 edited

Legend:

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

    r655 r668  
    6262  prof_win=wm->new_window(prop->getd("profile x",-1),
    6363              prop->getd("profile y",-1),
    64               20*console_font->width(),
    65               (prof_height+1)*console_font->height(),
     64              20 * console_font->Size().x,
     65              (prof_height + 1) * console_font->Size().y,
    6666              NULL,
    6767              "PROFILE");
     
    128128  for (; i<prof_height; i++)
    129129  {
    130     console_font->put_string(prof_win->m_surf,spliter+1,dy,object_names[prof_list[i].otype]);
     130    console_font->PutString(prof_win->m_surf, vec2i(spliter + 1, dy), object_names[prof_list[i].otype]);
    131131    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),
     132                          vec2i(spliter - 1, dy + console_font->Size().y - 1),
    133133                          wm->bright_color());
    134     dy+=console_font->height()+1;
     134    dy+=console_font->Size().y+1;
    135135  }
    136 
    137136}
    138137
    139 
    140 
    141 
    142 
    143 
Note: See TracChangeset for help on using the changeset viewer.