diff options
Diffstat (limited to 'anyfont.cpp')
| -rw-r--r-- | anyfont.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/anyfont.cpp b/anyfont.cpp index 45e516a..4e8f826 100644 --- a/anyfont.cpp +++ b/anyfont.cpp @@ -27,30 +27,15 @@ int anyFont::Width(const char *txt) while (txt && *txt) w += Width(*txt++); return w; } -int anyFont::LargeWidth(const char *txt) -{ - int w = 0; - while (txt && *txt) w += Width(*txt++); - return w*2; -} int anyFont::Width(char c) { return Font->Width(c); } -int anyFont::LargeWidth(char c) -{ - return Font->Width(c); -} int anyFont::Text(int x, int y, const char *txt, tColor fg, tColor bg) { osd->DrawText(x, y, txt, fg, trans ? clrTransparent : bg, Font); return x += Font->Width(txt); } -int anyFont::LargeText(int x, int y, const char *txt, tColor fg, tColor bg) -{ - osd->DrawText(x, y, txt, fg, trans ? clrTransparent : bg, Font); - return x + Font->Width(txt); -} int anyFont::Text(int x, int y, int w, int h, const char *txt, tColor fg, tColor bg) { if (txt==NULL) |
