level titles can now be displayed in two lines
This commit is contained in:
@@ -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
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user