foxygit / doom Log in
commit 44efcf1a9088a1a050049fa34779c7279d201676
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Mar 28 00:12:09 2014 -0400
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Mar 28 00:12:09 2014 -0400

    video: Fix calculation of -devparm ticker.

    The released linuxdoom source had the devparm ticker dots at a spacing
    of two pixels rather than four pixels (as used in Vanilla Doom). In
    commit 4a31ec8fcee20e.. I changed this back to four pixel spacing, but
    forgot to multiply the number of tics to adjust as appropriate. Fix
    this so that the dots are calculated just like Vanilla Doom is.

    Thanks to _bruce_ for pointing this out on Doomworld, and to
    Alexandre-Xavier for questioning my reasoning when I wasn't convinced
    that the current behavior was wrong. This fixes #360.
---
 src/i_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/i_video.c b/src/i_video.c
index a52f1a3b..c129d143 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1104,7 +1104,7 @@ void I_FinishUpdate (void)
 	lasttic = i;
 	if (tics > 20) tics = 20;

-	for (i=0 ; i<tics*2 ; i+=4)
+	for (i=0 ; i<tics*4 ; i+=4)
 	    I_VideoBuffer[ (SCREENHEIGHT-1)*SCREENWIDTH + i] = 0xff;
 	for ( ; i<20*4 ; i+=4)
 	    I_VideoBuffer[ (SCREENHEIGHT-1)*SCREENWIDTH + i] = 0x0;