diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-25 01:10:46 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-25 01:10:46 +0100 |
commit | c389d96769438345bd929285fb7500e22ba50bc3 (patch) | |
tree | 06259dcad4d46969055980ca61c809a6ef84058c /sys/src/cmd/rio/xfid.c | |
parent | e1bb660ef2d15d9f53638d60c9e15aaa8579b9bf (diff) |
rio: return correct color chan after screen depth change
Diffstat (limited to 'sys/src/cmd/rio/xfid.c')
-rw-r--r-- | sys/src/cmd/rio/xfid.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |