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

imlib: make JCFont use vec2i classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/jwindow.cpp

    r662 r668  
    522522    {
    523523      m_surf->Bar(vec2i(top_border(), 1),
    524                   vec2i(top_border() + fnt->width() * strlen (_name) + 1,
     524                  vec2i(top_border() + fnt->Size().x * strlen (_name) + 1,
    525525                        top_border() - 2),
    526526                  med);
    527       fnt->put_string(m_surf, top_border() + 1, 1, _name, low);
     527      fnt->PutString(m_surf, vec2i(top_border() + 1, 1), _name, low);
    528528    }
    529529  // clear 'client' region
     
    544544int Jwindow::top_border()
    545545{
    546     return wm->font()->height() + frame_top();
     546    return wm->font()->Size().y + frame_top();
    547547}
    548548
Note: See TracChangeset for help on using the changeset viewer.