diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-09-14 21:08:08 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-09-14 21:08:08 +0000 |
commit | 305fe12335ab67ced717eb1d223f16eaa4b194ab (patch) | |
tree | fa9ba4e5d7d5cc068b689381261187a388cefaf5 /code | |
parent | c713c03ce6567ed7adf7ff630f94958bea443a1d (diff) | |
download | ioquake3-aero-305fe12335ab67ced717eb1d223f16eaa4b194ab.tar.gz ioquake3-aero-305fe12335ab67ced717eb1d223f16eaa4b194ab.zip |
Threw in a hack to fix rendering of credits menu in widescreen.
Fixes Bugzilla #2744.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1593 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/q3_ui/ui_credits.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/code/q3_ui/ui_credits.c b/code/q3_ui/ui_credits.c index db6f536..7baee61 100644 --- a/code/q3_ui/ui_credits.c +++ b/code/q3_ui/ui_credits.c @@ -166,6 +166,12 @@ UI_CreditMenu =============== */ 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; |