From 50b36c5112a50a8ccb935519ff3e4d9ec38941b9 Mon Sep 17 00:00:00 2001 From: qwx Date: Thu, 31 May 2018 05:11:33 +0200 Subject: doom: don't set repl if scale is 1 --- sys/src/games/doom/i_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src') 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"); -- cgit v1.2.3