]> git.lizzy.rs Git - plan9front.git/commitdiff
doom: don't set repl if scale is 1
authorqwx <devnull@localhost>
Thu, 31 May 2018 03:11:33 +0000 (05:11 +0200)
committerqwx <devnull@localhost>
Thu, 31 May 2018 03:11:33 +0000 (05:11 +0200)
sys/src/games/doom/i_video.c

index 335faf1b93dd28d531e80a8d9d511aa018b8025f..098f58b2c8fb3bdf8c13659c8b35c8b7cee88a6d 100644 (file)
@@ -116,7 +116,7 @@ void I_FinishUpdate(void)
                Pt(scale*SCREENWIDTH/2, scale*SCREENHEIGHT/2));
 
        /* the row image, y-axis gets scaled with repl flag */
-       rowimg = allocimage(display, Rect(0, 0, scale*SCREENWIDTH, 1), RGB24, 1, DNofill);
+       rowimg = allocimage(display, Rect(0, 0, scale*SCREENWIDTH, 1), RGB24, scale > 1, DNofill);
        if(rowimg == nil)
                sysfatal("allocimage: %r");