diff options
| author | Jochen Dolze <vdr@dolze.de> | 2010-11-12 17:22:13 +0100 |
|---|---|---|
| committer | Jochen Dolze <vdr@dolze.de> | 2010-11-12 17:22:13 +0100 |
| commit | e2b8dc50f54ce91a6c5c26a4b5c798fd94b488e3 (patch) | |
| tree | 8c60e111d365f057e566776a7e8e4afc8239c171 /anyfont.cpp | |
| parent | 94dd6f768ab19fa3af4ff2a9b72a6c18951e7601 (diff) | |
| download | vdr-plugin-tvonscreen-e2b8dc50f54ce91a6c5c26a4b5c798fd94b488e3.tar.gz vdr-plugin-tvonscreen-e2b8dc50f54ce91a6c5c26a4b5c798fd94b488e3.tar.bz2 | |
Dropped XLFont option, code cleanup
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) |
