Skip to content
Commit cff5739c authored by Yifan Zhu's avatar Yifan Zhu Committed by Xaver Hugl
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.

Use the new Output::explicitLogicalSizeInt() and
Config::logicalSizeForOutputInt functions to explicitly round up
non-integral sizes.

BUG: 464842
BUG: 477791
parent e4e3acd6
Pipeline #554013 passed with stage
in 52 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