rio: return correct color chan after screen depth change

front
cinap_lenrek 2011-11-25 01:10:46 +01:00
parent e1bb660ef2
commit c389d96769
1 changed files with 1 additions and 1 deletions

View File

@ -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;