This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit ba4083b2cabcc5a109ed0eff594907e4da3a4541
Author: zturtle...@gmail.com 
<zturtle...@gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Fri May 30 22:23:49 2014 +0000

    SP: Fix displaying GL extensions overflowing 'lines' in ui_main.c
    
    Ported from TTimo's fix in RTCW MP. SP has 3 collumns, so limited to 62 
lines instead of 46 lines.
---
 SP/code/ui/ui_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SP/code/ui/ui_main.c b/SP/code/ui/ui_main.c
index 8b8f2b3..c14eea4 100644
--- a/SP/code/ui/ui_main.c
+++ b/SP/code/ui/ui_main.c
@@ -2455,7 +2455,8 @@ static void UI_DrawGLInfo( rectDef_t *rect, int font, 
float scale, vec4_t color,
        eptr = buff;
        y = rect->y + 45;
        numLines = 0;
-       while ( y < rect->y + rect->h && *eptr )
+       // don't overflow the line buffer, don't go above 62, as it goes out of 
the screen anyway
+       while ( y < rect->y + rect->h && *eptr && numLines < 62 )
        {
                while ( *eptr && *eptr == ' ' )
                        *eptr++ = '\0';

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to