|
From: Tapio V. <aa...@us...> - 2010-11-04 16:24:28
|
Module: performous
Branch: opengl2
Commit: 13b09b0095466c46c3f6c0a269a5ff880baca64a
Author: Tapio Vierros <tap...@gm...>
Date: Thu Nov 4 18:23:42 2010 +0200
Fix dance cursor arrows not showing up on some GPUs.
---
game/dancegraph.cc | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/game/dancegraph.cc b/game/dancegraph.cc
index 441726e..833e5a4 100644
--- a/game/dancegraph.cc
+++ b/game/dancegraph.cc
@@ -442,12 +442,15 @@ void DanceGraph::draw(double time) {
drawBeats(time);
// Arrows on cursor
- for (int arrow_i = 0; arrow_i < m_pads; ++arrow_i) {
- float x = panel2x(arrow_i);
- float y = time2y(0.0);
- float l = m_pressed_anim[arrow_i].get();
- float s = getScale() * (5.0 - l) / 5.0;
- drawArrow(arrow_i, m_arrows_cursor, x, y, s);
+ {
+ glutil::Color c(Color(1.0f, 1.0f, 1.0f, 1.0f));
+ for (int arrow_i = 0; arrow_i < m_pads; ++arrow_i) {
+ float x = panel2x(arrow_i);
+ float y = time2y(0.0);
+ float l = m_pressed_anim[arrow_i].get();
+ float s = getScale() * (5.0 - l) / 5.0;
+ drawArrow(arrow_i, m_arrows_cursor, x, y, s);
+ }
}
// Draw the notes
|