shithub: riscv

Download patch

ref: 50b36c5112a50a8ccb935519ff3e4d9ec38941b9
parent: 16c87febd3875c4b0c9648c681735be3de8358bd
author: qwx <devnull@localhost>
date: Thu May 31 01:11:33 EDT 2018

doom: don't set repl if scale is 1

--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -116,7 +116,7 @@
 		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");