projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e6423a
)
Fix off-by-one error in clutter_stage_read_pixels
author
Neil Roberts
<neil@linux.intel.com>
Tue, 6 Jan 2009 11:39:14 +0000
(11:39 +0000)
committer
Neil Roberts
<neil@linux.intel.com>
Tue, 6 Jan 2009 12:27:13 +0000
(12:27 +0000)
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.
clutter/clutter-stage.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-stage.c
b/clutter/clutter-stage.c
index
7e5abe7
..
f6d4228
100644
(file)
--- a/
clutter/clutter-stage.c
+++ b/
clutter/clutter-stage.c
@@
-1201,7
+1201,7
@@
clutter_stage_read_pixels (ClutterStage *stage,
/* The y co-ordinate should be given in OpenGL's coordinate system
so 0 is the bottom row */
- y = stage_height -
1 -
y - height;
+ y = stage_height - y - height;
glFinish ();