added printing of error message when initializing sound, fixed font spacing the millionth time

This commit is contained in:
2010-11-15 22:49:35 +01:00
parent e981f68a9c
commit 652367b824
5 changed files with 2328 additions and 3 deletions
+2 -1
View File
@@ -556,6 +556,7 @@ void View::DrawUiHighscore() {
unsigned int entry_length = 32;
float char_width, height;
DrawGLStringMeasure ("M", &char_width, &height);
height = fabsf(height);
float entry_width = fabsf(char_width * entry_length);
float x = screen_right * 0.5 - entry_width * 0.5;
float y = screen_bottom * 0.5 - 8 - 128;
@@ -580,7 +581,7 @@ void View::DrawUiHighscore() {
DrawHighscoreEntry ( x, y, entry_width, highscore_iter->name, highscore_iter->points);
// go down one line
y += 20;
y += height * 1.3;
i++;
highscore_iter++;