Ignore:
Timestamp:
Sep 12, 2011, 10:17:23 PM (11 years ago)
Author:
Sam Hocevar
Message:

core: rename vec2i to ivec2 and update matrix.h from Lol Engine.

File:
1 edited

Legend:

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

    r671 r682  
    6060
    6161
    62   prof_win=wm->CreateWindow(vec2i(prop->getd("profile x", -1),
     62  prof_win=wm->CreateWindow(ivec2(prop->getd("profile x", -1),
    6363                                  prop->getd("profile y", -1)),
    64                             vec2i(20, prof_height + 1) * console_font->Size(),
     64                            ivec2(20, prof_height + 1) * console_font->Size(),
    6565                            NULL, "PROFILE");
    6666}
     
    120120  float time_scaler=(float)max_bar_length/prof_list[0].total_time;
    121121
    122   prof_win->m_surf->Bar(vec2i(0, prof_win->y1()),
    123                         vec2i(prof_win->m_surf->Size().x - 1,
     122  prof_win->m_surf->Bar(ivec2(0, prof_win->y1()),
     123                        ivec2(prof_win->m_surf->Size().x - 1,
    124124                              prof_win->m_surf->Size().y), 0);
    125125  int dy = 0;
    126126  for (; i<prof_height; i++)
    127127  {
    128     console_font->PutString(prof_win->m_surf, vec2i(spliter + 1, dy), object_names[prof_list[i].otype]);
    129     prof_win->m_surf->Bar(vec2i(spliter - 1 - (int)(prof_list[i].total_time * time_scaler), dy + 1),
    130                           vec2i(spliter - 1, dy + console_font->Size().y - 1),
     128    console_font->PutString(prof_win->m_surf, ivec2(spliter + 1, dy), object_names[prof_list[i].otype]);
     129    prof_win->m_surf->Bar(ivec2(spliter - 1 - (int)(prof_list[i].total_time * time_scaler), dy + 1),
     130                          ivec2(spliter - 1, dy + console_font->Size().y - 1),
    131131                          wm->bright_color());
    132132    dy+=console_font->Size().y+1;
Note: See TracChangeset for help on using the changeset viewer.