Ignore:
Timestamp:
May 15, 2011, 5:31:42 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor image::PutPart? and image::PutPartMasked?, get rid of
unused methods image::PutPartXrev? and image::fill_image.

File:
1 edited

Legend:

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

    r644 r661  
    2828void texture_font::put_char(image *screen,  int x, int y, char ch)
    2929{ if (fntpat)
    30     screen->PutPartMasked(fntpat, let, x,y,
    31        ((int)ch%32)*tl,((int)ch/32)*th,0,0,tl-1,th-1);
    32   else screen->PutPart(let, x, y, ((int)ch%32)*tl, ((int)ch/32)*th,
    33      ((int)ch%32)*tl+tl-1, ((int)ch/32)*th+th-1, 1);
     30    screen->PutPartMasked(fntpat, vec2i(x, y), let,
     31       vec2i(((int)ch%32)*tl,((int)ch/32)*th), vec2i(0,0), vec2i(tl-1,th-1));
     32  else screen->PutPart(let, vec2i(x, y), vec2i(((int)ch%32)*tl, ((int)ch/32)*th),
     33     vec2i(((int)ch%32)*tl+tl-1, ((int)ch/32)*th+th-1), 1);
    3434}
    3535
     
    7474  {
    7575    tmp.clear();
    76     tmp.PutPart(letters, 0, 0, ((int)ch%32)*tl, ((int)ch/32)*th,
    77                 ((int)ch%32)*tl+tl-1, ((int)ch/32)*th+th-1, 1);
     76    tmp.PutPart(letters, vec2i(0, 0), vec2i(((int)ch%32)*tl, ((int)ch/32)*th),
     77                vec2i(((int)ch%32)*tl+tl-1, ((int)ch/32)*th+th-1), 1);
    7878    let[ch] = new TransImage(&tmp, "JCfont");
    7979  }
Note: See TracChangeset for help on using the changeset viewer.