ref: c389d96769438345bd929285fb7500e22ba50bc3
parent: e1bb660ef2d15d9f53638d60c9e15aaa8579b9bf
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;