Navigation Menu

Skip to content

Commit

Permalink
use drawtext_outline for element descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed May 22, 2014
1 parent 42f5ec9 commit 7e1076e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/game/GameView.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 7e1076e

Please sign in to comment.