Skip to content
Commit 6f797a90 authored by Yifan Zhu's avatar Yifan Zhu
Browse files

Round up output geometry

Under fractional scaling, output screens can have non-integral sizes.
Previous code uses QSizeF::toSize(), which rounds to the nearest
integer. This sometimes results in different screens sharing one pixel
at the edge, which causes BUG 464842 and BUG 477791.

Implement Output::explicitLogicalSizeInt() and
Config::logicalSizeForOutputInt to explicitly round up non-integral
sizes, and use them in calculating output geometry.

BUG: 464842
BUG: 477791
parent 1d1830cb
Pipeline #554010 passed with stage
in 51 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