git: 9front

Download patch

ref: 5c5f6e43ebc649cdd0d4e0351ef684898e510f5e
parent: 98b7cc9141e3c5b7a6e32be01497ec905585d24d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 2 22:56:01 EST 2014

libdraw: fix typo: 0xfffff -> 0xffff

--- a/sys/src/libdraw/window.c
+++ b/sys/src/libdraw/window.c
@@ -29,7 +29,7 @@
 		a = bufimage(d, 1+4+4+4+1);
 		if(a == 0)
 			break;
-		id = ++screenid & 0xfffff;	/* old devdraw bug */
+		id = ++screenid & 0xffff;	/* old devdraw bug */
 		a[0] = 'A';
 		BPLONG(a+1, id);
 		BPLONG(a+5, image->id);
--