After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659166 - extra line at window edge in zoom
extra line at window edge in zoom
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-09-15 17:36 UTC by William Jon McCann
Modified: 2018-02-01 10:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (33.37 KB, image/png)
2011-09-15 17:36 UTC, William Jon McCann
  Details
tests: Add a test for scaling multitextured materials (6.93 KB, patch)
2011-10-08 05:28 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
meta-shaped-texture: Use nearest neighbor interpolation when upscaling (1.41 KB, patch)
2011-10-25 13:43 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review

Description William Jon McCann 2011-09-15 17:36:29 UTC
Created attachment 196658 [details]
screenshot

As I move the zoom view around both the horizontal and vertical edges of windows exhibit what seems to be a +/- single pixel gap between the edge and the shadow. This seems to alternate between 1 and 0 as I move around.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-09-26 15:47:07 UTC
This is probably OpenGL blending the window texture against random junk in memory when the screen's pixel grid doesn't align with the texture's pixel grid, like scaling down in the overview, or scaling up in zoom. Because the invisible borders made the pixmap larger, we occasionally see the random junk around the edges instead of nothing.

Somebody with more knowledge of OpenGL would know how to fix this better.
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-10-08 05:28:23 UTC
Created attachment 198584 [details] [review]
tests: Add a test for scaling multitextured materials
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-10-08 05:28:47 UTC
Produced a raw Clutter test, punting to them.
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-10-25 13:43:36 UTC
Created attachment 199931 [details] [review]
meta-shaped-texture: Use nearest neighbor interpolation when upscaling

If we don't do this, when upscaling the texture, we could sample pixels that
are supposed to be hidden by the alpha mask.
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-04-25 22:01:49 UTC
Ping on this?
Comment 6 Bastien Nocera 2012-06-21 18:18:10 UTC
Looks like unrelated space changes in the patch.
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-10-08 19:19:20 UTC
(In reply to comment #6)
> Looks like unrelated space changes in the patch.

Would you like a separate highlighting changes?
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-10-08 19:20:28 UTC
s/highlighting/indentation/g
Comment 9 Jonas Ådahl 2018-02-01 10:33:24 UTC
Doesn't reproduce here, and the clutter drawing, including how we deal with scaling and what not have changed since this was reported. Closing as fixed.