GNOME Bugzilla – Bug 669366
screenshot_area() misses target rect
Last modified: 2012-02-04 16:07:38 UTC
The area screenshot now shoots with an offset from the given rectangle, i.e., it misses the rect selection given with <x, y, width, height> and shifts to the lower left. Could this be related to cosimoc’s commit 9147dee0 "screenshot: use the correct offsets when calculating the window area". This screenshot in [1] came out when it was given the rectangle seen in [0]. This worked in December. [0] https://bugzilla.gnome.org/attachment.cgi?id=206763 [1] https://bugzilla.gnome.org/attachment.cgi?id=206764
I tested this with gnome-shell-extension-area-screenshot. The used code is at: https://github.com/DASPRiD/gnome-shell-extension-area-screenshot/blob/master/area-screenshot@dasprids.de/extension.js
Created attachment 206768 [details] [review] screenGrabber: Pass correct coordinates to glReadPixels Pass x and y to glReadPixels rather then always 0, 0.
Review of attachment 206768 [details] [review]: Hah, I had noted that when Owen originally posted the code on IRC. Thought he would have fixed it.
Attachment 206768 [details] pushed as 8755941 - screenGrabber: Pass correct coordinates to glReadPixels