mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 12:00:44 -05:00
9ab338d7b6
When fractional scaling is used, damage and paint clip region is tracked in stage coordinate space using integers might end up missing some pixels when the border ends up on half pixels. Change the damage tracking and clip regions to be in buffer coordinates so we can align damage on physical pixel borders. However, just using rounding up to the next physical pixel results in glitches. To avoid this, extend the damage by one logical pixel in all directions, but still (scissor) clip the drawing to the non-extended region, as otherwise drawing the damaged regions will result in incorrect pixels on the right and bottom edges of the clip region. It is possible that there are better ways to do this, which can be explored in the future. https://bugzilla.gnome.org/show_bug.cgi?id=765011 |
||
---|---|---|
.. | ||
clutter-stage-cogl.c | ||
clutter-stage-cogl.h |