git: 9front

Download patch

ref: 9e906340ca08563f16414e9c8b75b578ff0f3881
parent: 5966cdab2c9905d10753fa3a2c04eb1c80f4284c
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Thu Nov 24 20:10:46 EST 2011

rio: return correct color chan after screen depth change

--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -570,7 +570,7 @@
 	int ww, y;
 
 	offset -= 5*12;
-	ww = bytesperline(r, screen->depth);
+	ww = bytesperline(r, i->depth);
 	r.min.y += offset/ww;
 	if(r.min.y >= r.max.y)
 		return 0;
--