[quake3-commits] r1593 - trunk/code/q3_ui
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Sep 14 17:08:08 EDT 2009
Author: icculus
Date: 2009-09-14 17:08:08 -0400 (Mon, 14 Sep 2009)
New Revision: 1593
Modified:
trunk/code/q3_ui/ui_credits.c
Log:
Threw in a hack to fix rendering of credits menu in widescreen.
Fixes Bugzilla #2744.
Modified: trunk/code/q3_ui/ui_credits.c
===================================================================
--- trunk/code/q3_ui/ui_credits.c 2009-09-14 19:51:37 UTC (rev 1592)
+++ trunk/code/q3_ui/ui_credits.c 2009-09-14 21:08:08 UTC (rev 1593)
@@ -166,6 +166,12 @@
===============
*/
void UI_CreditMenu( void ) {
+ /* This UI_FillRect() hack will blank the borders if you're in widescreen,
+ so you get a completely black background instead of stripes from the
+ previous frame on each side of the credits.. */
+ const float black[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ UI_FillRect(0 - uis.bias, 0, (640.0f / uis.xscale) * 2.0f, 480.0f / uis.yscale, black);
+
memset( &s_credits, 0 ,sizeof(s_credits) );
s_credits.menu.draw = UI_CreditMenu_Draw;
More information about the quake3-commits
mailing list