rio: return correct color chan after screen depth change
parent
e1bb660ef2
commit
c389d96769
|
@ -570,7 +570,7 @@ readwindow(Image *i, char *t, Rectangle r, int offset, int n)
|
||||||
int ww, y;
|
int ww, y;
|
||||||
|
|
||||||
offset -= 5*12;
|
offset -= 5*12;
|
||||||
ww = bytesperline(r, screen->depth);
|
ww = bytesperline(r, i->depth);
|
||||||
r.min.y += offset/ww;
|
r.min.y += offset/ww;
|
||||||
if(r.min.y >= r.max.y)
|
if(r.min.y >= r.max.y)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue