From 7e1076ee5f3576a282c3e17a4ca966578be2c688 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 22 May 2014 12:39:35 -0400 Subject: [PATCH] use drawtext_outline for element descriptions --- src/gui/game/GameView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index acc0ffb58..b50ddde3c 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2255,7 +2255,10 @@ void GameView::OnDraw() if(toolTipPresence && toolTipPosition.X!=-1 && toolTipPosition.Y!=-1 && toolTip.length()) { - g->drawtext(toolTipPosition.X, toolTipPosition.Y, (char*)toolTip.c_str(), 255, 255, 255, toolTipPresence>51?255:toolTipPresence*5); + if (toolTipPosition.Y == Size.Y-MENUSIZE-10) + g->drawtext_outline(toolTipPosition.X, toolTipPosition.Y, (char*)toolTip.c_str(), 255, 255, 255, toolTipPresence>51?255:toolTipPresence*5); + else + g->drawtext(toolTipPosition.X, toolTipPosition.Y, (char*)toolTip.c_str(), 255, 255, 255, toolTipPresence>51?255:toolTipPresence*5); } if(buttonTipShow > 0)