diff options
author | Thomas Günther <tom@toms-cafe.de> | 2006-04-25 02:08:15 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2006-04-25 02:08:15 +0200 |
commit | e9bf999004a4698c75d8aefa9033af87fc086e64 (patch) | |
tree | 005c5cbad72781412ab0d0ae8357e2800644af39 /menu.cpp | |
parent | 9502103873d09f6ba87eaf5e62ae13869d53f928 (diff) | |
download | vdr-plugin-sudoku-e9bf999004a4698c75d8aefa9033af87fc086e64.tar.gz vdr-plugin-sudoku-e9bf999004a4698c75d8aefa9033af87fc086e64.tar.bz2 |
Removed compatibility to VDR < 1.3.47
Diffstat (limited to 'menu.cpp')
-rw-r--r-- | menu.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: menu.cpp 16 2005-10-31 21:12:41Z tom $ + * $Id: menu.cpp 27 2006-04-25 00:08:15Z tom $ */ #include "menu.h" @@ -16,22 +16,6 @@ #include <vdr/osd.h> #include <vdr/font.h> -// Compatibility to older vdr versions -#if VDRVERSNUM < 10307 - #define tColor eDvbColor - #define DrawRectangle Fill - #define DrawBitmap SetBitmap - #define cOsdProvider cOsd - #define NewOsd OpenRaw - struct tArea { int x1, y1, x2, y2, bpp; }; - #define SetAreas(a,n) Create(a->x1, a->y1,\ - a->x2 - a->x1 + 1, a->y2 - a->y1 + 1,\ - a->bpp, true) - #define Color GetColor - #define savePalette(bitmap) savePalette(2) - #define SetPalette(palette, area) Width('X') -#endif - using namespace SudokuPlugin; using namespace Sudoku; @@ -209,15 +193,8 @@ void Menu::paint() if (puzzle.get(p) != 0) { char txt[2] = { '0' + puzzle.get(p), 0 }; -#if VDRVERSNUM < 10307 - osd->SetFont(fontFix); - osd->Text(x1 + max((CELL_SIZE - osd->Width(txt)) / 2, 0), - y1 + max((CELL_SIZE - cOsd::LineHeight()) / 2, 0), - txt, fg, bg); -#else const cFont* font = cFont::GetFont(fontFix); osd->DrawText(x1, y1, txt, fg, bg, font, CELL_SIZE, CELL_SIZE, taCenter); -#endif } } |