Ignore:
Timestamp:
Apr 20, 2011, 12:39:27 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: use vec2i for image::size and unroll all necessary changes
everywhere else in the code.

File:
1 edited

Legend:

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

    r494 r512  
    1313#include <ctype.h>
    1414
     15#include "common.h"
     16
    1517#include "fonts.h"
    1618
     
    1820{ fntpat=font_pattern;
    1921  let=letters;
    20   tl=(let->width()+1)/32;
    21   th=(let->height()+1)/8;
     22  tl=(let->Size().x+1)/32;
     23  th=(let->Size().y+1)/8;
    2224}
    2325
     
    6062JCFont::JCFont(image *letters)
    6163{
    62   tl=(letters->width()+1)/32;
    63   th=(letters->height()+1)/8;
     64  tl=(letters->Size().x+1)/32;
     65  th=(letters->Size().y+1)/8;
    6466
    6567  image tmp(tl,th);
Note: See TracChangeset for help on using the changeset viewer.