diff options
author | Udo Richter <udo_richter@gmx.de> | 2012-04-03 20:45:01 +0200 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2012-04-03 20:47:28 +0200 |
commit | 57dc943d3821c06ab301f062885c6bbaed0a2277 (patch) | |
tree | 5a22cf57fc749263731638017bf73c212106c17e /displaybase.c | |
parent | b38af9121cc2c288473ba4239585cefb5f9b0f93 (diff) | |
download | vdr-plugin-osdteletext-57dc943d3821c06ab301f062885c6bbaed0a2277.tar.gz vdr-plugin-osdteletext-57dc943d3821c06ab301f062885c6bbaed0a2277.tar.bz2 |
Instead of doing mixed drawing to cOsd and cBitmap only draw to cBitmapv0.9.3
(Closes #899, this should fixe the issues with the TT6400)
Diffstat (limited to 'displaybase.c')
-rw-r--r-- | displaybase.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/displaybase.c b/displaybase.c index 2c3e1a2..03c15b7 100644 --- a/displaybase.c +++ b/displaybase.c @@ -424,14 +424,14 @@ void cDisplay::DrawMessage(const char *txt) { if (fg==bg) bg=bm->Color(GetColorIndexAlternate(ttcBlack,Area)); // Draw framed box - osd->DrawRectangle(x ,y ,x+w-1 ,y+border-1 ,fg); - osd->DrawRectangle(x ,y+h-border,x+w-1 ,y+h-1 ,fg); - osd->DrawRectangle(x ,y ,x+border-1 ,y+h-1 ,fg); - osd->DrawRectangle(x+w-border,y ,x+w-1 ,y+h-1 ,fg); - osd->DrawRectangle(x+border ,y+border ,x+w-border-1,y+h-border-1,bg); + bm->DrawRectangle(x ,y ,x+w-1 ,y+border-1 ,fg); + bm->DrawRectangle(x ,y+h-border,x+w-1 ,y+h-1 ,fg); + bm->DrawRectangle(x ,y ,x+border-1 ,y+h-1 ,fg); + bm->DrawRectangle(x+w-border,y ,x+w-1 ,y+h-1 ,fg); + bm->DrawRectangle(x+border ,y+border ,x+w-border-1,y+h-border-1,bg); // Draw text - osd->DrawText(x+2*border,y+2*border,txt, fg, bg, MessageFont); + bm->DrawText(x+2*border,y+2*border,txt, fg, bg, MessageFont); Area++; } |