Skip to content
Commit 8e1d9aa4 authored by Oliver Sander's avatar Oliver Sander Committed by Albert Astals Cid
Browse files

Fix page boundary gradients on scaled displays

The code that draws a thin gradient at the right and bottom
boundaries of a page implicitly assumed that the display was
not scaled, i.e., that logical pixel where identical to
physical pixels.  Nobody really noticed because that gradient
was so thin.  Anyway, this patch fixes the gradient for
scaled displays.

I considered using a QLinearGradient, but decided against it:
The code would have been longer, and the manual code in the
patch can exploit the fact that all lines are horizontal
or vertical.  Therefore, expensive scan-conversion can be
avoided.
parent a0bd9c4d
Pipeline #5393 failed with stage
in 4 minutes and 53 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment