|
From: Tapio V. <aa...@us...> - 2010-01-07 18:55:10
|
Module: performous
Branch: master
Commit: ffd70e5b316726162b0882196b8e9a575558f9df
Author: Tapio Vierros <tap...@gm...>
Date: Thu Jan 7 20:54:24 2010 +0200
Make notegraph larger in band mode.
---
game/notegraph.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/notegraph.cc b/game/notegraph.cc
index 07679e9..ea6714d 100644
--- a/game/notegraph.cc
+++ b/game/notegraph.cc
@@ -86,7 +86,7 @@ void NoteGraph::draw(double time, Database const& database, Position position) {
dimensions.stretch(1.0, 0.50).center();
break;
case NoteGraph::TOP:
- dimensions.stretch(1.0, 0.25).bottom(0.0);
+ dimensions.stretch(1.0, 0.40).bottom(0.0);
break;
case NoteGraph::LEFT:
dimensions.stretch(0.50, 0.50).center().left(-0.5);
@@ -113,7 +113,7 @@ void NoteGraph::draw(double time, Database const& database, Position position) {
float centery = m_baseY + (it->note + 0.4) * m_noteUnit; // Star is 0.4 notes higher than current note
float centerx = x + w - 1.2 * hh; // Star is 1.2 units from end
float rot = fmod(time * 360, 360); // They rotate!
- float zoom = (std::abs((rot-180) / 360.0f) * 0.8f + 0.6f) * (position == NoteGraph::TOP ? 3.0 : 2.0) * hh;
+ float zoom = (std::abs((rot-180) / 360.0f) * 0.8f + 0.6f) * (position == NoteGraph::TOP ? 2.3 : 2.0) * hh;
glutil::Translation tr(centerx, centery);
glutil::Rotation rt(rot, 0.0f, 0.0f, 1.0f);
m_star.draw(Dimensions().stretch(zoom, zoom).center().middle(), TexCoords());
|