|
From: Tapio V. <aa...@us...> - 2010-01-31 08:52:01
|
Module: performous
Branch: master
Commit: ef10179450b354abf67c820a44218e8832191f30
Author: Tapio Vierros <tap...@gm...>
Date: Sun Jan 31 10:50:43 2010 +0200
Allow 2D notes to live another day.
---
game/guitargraph.cc | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index f2a0b07..d4f1b9f 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -777,12 +777,10 @@ void GuitarGraph::drawNote(int fret, glutil::Color c, float tBeg, float tEnd, fl
m_fretObj.draw(x, y, 0.0f);
y -= fretWid;
} else { // 2D
- UseTexture tblock(m_tail);
- glutil::Begin block(GL_TRIANGLE_STRIP);
c.a = time2a(tBeg); glColor4fv(c);
- vertexPair(x, y, c, 1.0f);
+ m_button.dimensions.center(yBeg).middle(x);
+ m_button.draw();
y -= 2 * fretWid;
- vertexPair(x, y, c, 0.5f);
}
// Render the middle
bool doanim = hit || hitAnim > 0; // Enable glow?
|