https://bugs.kde.org/show_bug.cgi?id=480291

--- Comment #4 from Nate Graham <n...@kde.org> ---
It looks like this data comes from QApplication::screens() which provides the
per-screen pixel width and height in logical (aka scaled) pixels, not physical
pixels. So we either need to use another data source to get the resolution, or
else un-scale them by multiplying the numbers we have by the screen's scale
factor. That could lead to loss of precision, though, so I think it's not
preferred. I tried it anyway, and multiplying by QScreen::devicePixelRatio()
doesn't work since that rounds to integers, so it gives incorrect results with
fractional scale factors.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to