mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Fix off-by-one error in clutter_stage_read_pixels
It was always reading one pixel lower than requested. If y was 0 then it would try to read below the lowest line. Thanks to Geoff Gustafson for spotting.
This commit is contained in:
parent
8e6423a1b6
commit
e4272fba69
@ -1201,7 +1201,7 @@ clutter_stage_read_pixels (ClutterStage *stage,
|
|||||||
|
|
||||||
/* The y co-ordinate should be given in OpenGL's coordinate system
|
/* The y co-ordinate should be given in OpenGL's coordinate system
|
||||||
so 0 is the bottom row */
|
so 0 is the bottom row */
|
||||||
y = stage_height - 1 - y - height;
|
y = stage_height - y - height;
|
||||||
|
|
||||||
glFinish ();
|
glFinish ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user