From 57dc943d3821c06ab301f062885c6bbaed0a2277 Mon Sep 17 00:00:00 2001 From: Udo Richter Date: Tue, 3 Apr 2012 20:45:01 +0200 Subject: Instead of doing mixed drawing to cOsd and cBitmap only draw to cBitmap (Closes #899, this should fixe the issues with the TT6400) --- displaybase.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'displaybase.c') 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++; } -- cgit v1.2.3