Ignore:
Timestamp:
May 13, 2011, 9:13:58 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: reverse the image::put_image logic.

File:
1 edited

Legend:

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

    r555 r644  
    2828void texture_font::put_char(image *screen,  int x, int y, char ch)
    2929{ if (fntpat)
    30     fntpat->put_part_masked(screen,let, x,y,
     30    screen->PutPartMasked(fntpat, let, x,y,
    3131       ((int)ch%32)*tl,((int)ch/32)*th,0,0,tl-1,th-1);
    32   else let->put_part(screen,x,y,((int)ch%32)*tl,((int)ch/32)*th,
    33      ((int)ch%32)*tl+tl-1,((int)ch/32)*th+th-1,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);
    3434}
    3535
     
    7474  {
    7575    tmp.clear();
    76     letters->put_part(&tmp,0,0,((int)ch%32)*tl,((int)ch/32)*th,
    77               ((int)ch%32)*tl+tl-1,((int)ch/32)*th+th-1,1);
    78     let[ch]=new TransImage(&tmp,"JCfont");
     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);
     78    let[ch] = new TransImage(&tmp, "JCfont");
    7979  }
    8080}
Note: See TracChangeset for help on using the changeset viewer.