level titles can now be displayed in two lines

This commit is contained in:
2011-03-27 22:06:25 +02:00
parent b4c046bae2
commit 729518af7f
5 changed files with 63 additions and 14 deletions
+2
View File
@@ -148,6 +148,8 @@ void LabelCentered (int id, const char* caption, int x, int y) {
assert (view);
view->DrawGLStringMeasure(caption, &width, &height);
height = fabs (height);
width = fabs (width);
view->DrawGLString(x - 0.5 * width, y + height * 0.5, caption);
}
}
+1 -1
View File
@@ -48,7 +48,7 @@ int SoundBase::OnInit(int argc, char* argv[]) {
int audio_rate = 22050;
Uint16 audio_format = AUDIO_S16;
int audio_channels = 2;
int audio_buffers = 2048;
int audio_buffers = 4096;
LogDebug("Sound Init");
if (Mix_OpenAudio (audio_rate, audio_format, audio_channels, audio_buffers)) {