From 48aa5c445a371a345e23579252c23fba70e9e847 Mon Sep 17 00:00:00 2001 From: johns <> Date: Wed, 29 Mar 2000 22:21:45 +0000 Subject: [PATCH] Debug display corrected. --- src/ui/mouse.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ui/mouse.cpp b/src/ui/mouse.cpp index fffb2db44..729945737 100644 --- a/src/ui/mouse.cpp +++ b/src/ui/mouse.cpp @@ -92,7 +92,10 @@ local void DrawMouseCoordsOnMap(int x,int y) DebugLevel0(__FUNCTION__": coords outside map %d,%d\n",x,y); return; } - DrawImage(ImageMenuButton,0,0,0,0); + VideoDrawSub(TheUI.MenuButton.Graphic,0,0 + ,TheUI.MenuButton.Graphic->Width + ,TheUI.MenuButton.Graphic->Height + ,TheUI.MenuButtonX,TheUI.MenuButtonY); flags=TheMap.Fields[x+y*TheMap.Width].Flags; sprintf(buf,"%3d,%3d=%02X|%04X|%c%c%c%c%c%c%c%c%c",x,y ,TheMap.Fields[x+y*TheMap.Width].Value @@ -107,8 +110,10 @@ local void DrawMouseCoordsOnMap(int x,int y) ,flags&MapFieldExplored ?'e':'-' ,flags&MapFieldVisible ?'v':'-' ); - DrawText(3,3,GameFont,buf); - InvalidateArea(0,0,176,24); + DrawText(TheUI.MenuButtonX+3,TheUI.MenuButtonY+3,GameFont,buf); + InvalidateArea(TheUI.MenuButtonX,TheUI.MenuButtonY + ,TheUI.MenuButton.Graphic->Width + ,TheUI.MenuButton.Graphic->Height); } #endif // } FLAG_DEBUG