|
From: Tapio V. <aa...@us...> - 2010-03-31 17:49:27
|
Module: performous
Branch: master
Commit: d174cdb188a2c55957861a1d3c485091f1c6e903
Author: Tapio Vierros <tap...@gm...>
Date: Wed Mar 31 20:48:12 2010 +0300
Hack a better score display for lone instrument player.
---
game/guitargraph.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index 96a51c8..f46faeb 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -867,6 +867,11 @@ void GuitarGraph::drawInfo(double time, double offsetX, Dimensions dimensions) {
} else {
float xcor = 0.35 * dimensions.w();
float h = 0.075 * 2.0 * dimensions.w();
+ // Hack to show the scores better when there is more space (1 instrument)
+ if (m_width.get() > 0.99) {
+ xcor += 0.15;
+ h *= 1.2;
+ }
// Draw scores
glColor4f(0.1f, 0.3f, 1.0f, 0.90f);
m_scoreText->render((boost::format("%04d") % getScore()).str());
|