shithub: 9ferno

Download patch

ref: 7168ddd6205de69c6d3658f80b8e55f51ddf7954
parent: 646035340eaad8997799fbb5365d04b2638e66a8
author: henesy <unknown>
date: Sat Feb 29 18:54:49 EST 2020

merge f2847740e449ea52349968e40fa4e5fb8426bb41 from upstream

--- a/.hgignore
+++ b/.hgignore
@@ -53,6 +53,7 @@
 keydb/signed
 keydb/signerkey
 tmp/*
+*.rej
 
 syntax: regexp
 ^dis/.*.dis
--- a/emu/port/win-x11a.c
+++ b/emu/port/win-x11a.c
@@ -341,6 +341,33 @@
 }
 
 static void
+copy16to16(Rectangle r)
+{
+	int dx, width;
+	u16int *dp, *wp, *edp, *lp;
+
+	width = Dx(r);
+	dx = Xsize - width;
+	dp = (u16int*)(gscreendata + ((r.min.y * Xsize) + r.min.x) * 2);
+	wp = (u16int*)(xscreendata + ((r.min.y * Xsize) + r.min.x) * 2);
+	edp = (u16int*)(gscreendata + ((r.max.y * Xsize) + r.max.x) * 2);
+
+	/* The pixel format should be the same as the underlying X display (see
+	   the xtruevisual function) unless a different channel format is
+	   explicitly specified on the command line, so just copy the pixel data
+	   without any processing. */
+
+	while(dp < edp) {
+		lp = dp + width;
+		while(dp < lp){
+			*wp++ = *dp++;
+		}
+		dp += dx;
+		wp += dx;
+	}
+}
+
+static void
 copy8to32(Rectangle r)
 {
 	int dx, width;