From e2b8dc50f54ce91a6c5c26a4b5c798fd94b488e3 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Fri, 12 Nov 2010 17:22:13 +0100 Subject: Dropped XLFont option, code cleanup --- anyfont.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'anyfont.cpp') 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) -- cgit v1.2.3