From c389d96769438345bd929285fb7500e22ba50bc3 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 25 Nov 2011 01:10:46 +0100 Subject: [PATCH] rio: return correct color chan after screen depth change --- sys/src/cmd/rio/xfid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c index 814e9da5a..2bed90fbd 100644 --- a/sys/src/cmd/rio/xfid.c +++ b/sys/src/cmd/rio/xfid.c @@ -570,7 +570,7 @@ readwindow(Image *i, char *t, Rectangle r, int offset, int n) 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;