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

imlib: minor refactoring.

File:
1 edited

Legend:

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

    r661 r662  
    2929{ if (fntpat)
    3030    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));
     31       vec2i(((int)ch%32)*tl,((int)ch/32)*th), vec2i(0,0), vec2i(tl,th));
    3232  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);
     33     vec2i(((int)ch%32)*tl+tl, ((int)ch/32)*th+th), 1);
    3434}
    3535
     
    7575    tmp.clear();
    7676    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);
     77                vec2i(((int)ch%32)*tl+tl, ((int)ch/32)*th+th), 1);
    7878    let[ch] = new TransImage(&tmp, "JCfont");
    7979  }
Note: See TracChangeset for help on using the changeset viewer.