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

imlib: remove dead code.

File:
1 edited

Legend:

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

    r662 r667  
    1919#include "fonts.h"
    2020
    21 texture_font::texture_font(image *letters, image *font_pattern)
    22 { fntpat=font_pattern;
    23   let=letters;
    24   tl=(let->Size().x+1)/32;
    25   th=(let->Size().y+1)/8;
    26 }
    27 
    28 void texture_font::put_char(image *screen,  int x, int y, char ch)
    29 { if (fntpat)
    30     screen->PutPartMasked(fntpat, vec2i(x, y), let,
    31        vec2i(((int)ch%32)*tl,((int)ch/32)*th), vec2i(0,0), vec2i(tl,th));
    32   else screen->PutPart(let, vec2i(x, y), vec2i(((int)ch%32)*tl, ((int)ch/32)*th),
    33      vec2i(((int)ch%32)*tl+tl, ((int)ch/32)*th+th), 1);
    34 }
    35 
    36 void texture_font::put_string(image *screen, int x, int y, char const *st)
    37 { while (*st)
    38   { put_char(screen,x,y,*st);
    39     st++;
    40     x+=tl;
    41   }
    42 }
    43 
    44 
    4521void JCFont::put_string(image *screen, int x, int y, char const *st, int color)
    4622{ while (*st)
     
    5026  }
    5127}
    52 
    5328
    5429void JCFont::put_char(image *screen,  int x, int y, char ch, int color)
Note: See TracChangeset for help on using the changeset viewer.