|
From: Yoda-JM <yo...@us...> - 2009-07-26 05:31:05
|
Module: performous
Branch: master
Commit: b9b82fda87dc158d535b0c251465c42555fdfc87
Author: Vincent Le Ligeour <yo...@us...>
Date: Sun Jul 26 07:29:19 2009 +0200
Put some hardcoded layout stuffs
---
game/layout_singer.cc | 11 +++++++++--
game/notegraph.cc | 9 +++++++--
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/game/layout_singer.cc b/game/layout_singer.cc
index fb63a57..a71526a 100644
--- a/game/layout_singer.cc
+++ b/game/layout_singer.cc
@@ -20,8 +20,15 @@ void LayoutSinger::draw(double time) {
}
// Draw the lyrics
- const double basepos = -0.1;
- const double linespacing = 0.06;
+ double basepos;
+ double linespacing;
+ if(1) {
+ basepos = -0.35;
+ linespacing = 0.04;
+ } else {
+ basepos = -0.1;
+ linespacing = 0.06;
+ }
bool dirty;
do {
dirty = false;
diff --git a/game/notegraph.cc b/game/notegraph.cc
index 31fdd5a..d45a022 100644
--- a/game/notegraph.cc
+++ b/game/notegraph.cc
@@ -75,8 +75,13 @@ void NoteGraph::draw(double time, std::list<Player> const& players) {
}
m_max = m_nlTop.get() + 7.0;
m_min = m_nlBottom.get() - 7.0;
- m_noteUnit = -0.5 / std::max(24.0, m_max - m_min);
- m_baseY = -0.5 * (m_min + m_max) * m_noteUnit;
+ if(1) {
+ m_noteUnit = -0.25 / std::max(12.0, m_max - m_min);
+ m_baseY = -0.35 * (m_min + m_max) * m_noteUnit;
+ } else {
+ m_noteUnit = -0.5 / std::max(24.0, m_max - m_min);
+ m_baseY = -0.5 * (m_min + m_max) * m_noteUnit;
+ }
m_baseX = baseLine - m_time * pixUnit;
drawNotes();
|