summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-24 16:41:41 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-24 16:41:41 (GMT)
commitdceefed030e8fb6452cf71e79904bb44a5d1acfa (patch)
tree6c5b4e638e639435e0620a74cd60617a9ad94aac /src/game/GameView.cpp
parentd50d45ecffcd0bba038c2413c3c159e85516ba27 (diff)
downloadpowder-dceefed030e8fb6452cf71e79904bb44a5d1acfa.zip
powder-dceefed030e8fb6452cf71e79904bb44a5d1acfa.tar.gz
Correct alignment of elements in TextPrompt
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 18d0bec..5bf7043 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1285,11 +1285,11 @@ void GameView::OnDraw()
fpsInfo << "Snapshot " << SNAPSHOT_ID << ". ";
#endif
fpsInfo << "FPS: " << std::fixed << ui::Engine::Ref().GetFps();
-#endif
textWidth = Graphics::textwidth((char*)fpsInfo.str().c_str());
g->fillrect(12, 12, textWidth+8, 15, 0, 0, 0, 255*0.5);
g->drawtext(16, 16, (const char*)fpsInfo.str().c_str(), 32, 216, 255, 255*0.75);
+#endif
//Tooltips
if(infoTipPresence)