From 3f79d045362f7c88c0e77a20d951c2569e2c9628 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 20 Sep 2011 03:39:23 +0000 Subject: [PATCH] Center ioq3 credits vertically. --- code/q3_ui/ui_credits.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/q3_ui/ui_credits.c b/code/q3_ui/ui_credits.c index db6f536a..acc6d460 100644 --- a/code/q3_ui/ui_credits.c +++ b/code/q3_ui/ui_credits.c @@ -67,7 +67,9 @@ static void UI_CreditMenu_Draw_ioq3( void ) { NULL }; - y = 12; + // Center text vertically on the screen + y = (SCREEN_HEIGHT - ARRAY_LEN(names) * (1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE)) / 2; + UI_DrawProportionalString( 320, y, "ioquake3 contributors:", UI_CENTER|UI_SMALLFONT, color_white ); y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;