Mercurial > hg > opencollidoscope
diff CollidoscopeApp/include/DrawInfo.h @ 7:a4a336624f5a
added some comments
DrawInfo dependency from NUM_WAVES
author | Fiore Martin <f.martin@qmul.ac.uk> |
---|---|
date | Fri, 15 Jul 2016 16:05:34 +0200 |
parents | 75b744078d66 |
children | 4dad0b810f18 |
line wrap: on
line diff
--- a/CollidoscopeApp/include/DrawInfo.h Thu Jul 14 15:08:31 2016 +0200 +++ b/CollidoscopeApp/include/DrawInfo.h Fri Jul 15 16:05:34 2016 +0200 @@ -93,7 +93,7 @@ int32_t getWaveCenterY() const { if ( mWaveIndex == 0 ) - return mWindowHeight * 0.75f + 1; + return mWindowHeight - ( mWindowHeight / ( 2 * NUM_WAVES ) ) + 1; else return mWindowHeight / (NUM_WAVES * 2); }