summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqwx <devnull@localhost>2018-05-31 05:11:33 +0200
committerqwx <devnull@localhost>2018-05-31 05:11:33 +0200
commit50b36c5112a50a8ccb935519ff3e4d9ec38941b9 (patch)
tree52810ecb6691ee4bdca471a740a82fb38ce65161
parent16c87febd3875c4b0c9648c681735be3de8358bd (diff)
downloadplan9front-50b36c5112a50a8ccb935519ff3e4d9ec38941b9.tar.xz
doom: don't set repl if scale is 1
-rw-r--r--sys/src/games/doom/i_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/games/doom/i_video.c b/sys/src/games/doom/i_video.c
index 335faf1b9..098f58b2c 100644
--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -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");