Skip to content
Commit 9d95d8d5 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix canvas scale in HiDPI mode

Qt has a bit complicated way to deal with openGL widget
in scaled HiDPI mode. The openGL widget's framebuffer is
stored in hardware pixels (physical coordinates), but before
calling paintGL, Qt sets manual scaling with glOrtho that
makes this FBO look as if it is stored in logical pixels.

This patch basically takes it into account by setting
a correct physical resolution in
KisZoomManager::updateScreenResolution(). It has one non-
trivial consequence. Now, when setting zoom to 100% and
having pixel aspect mode activated, Flake coordinate system
does **not** have 100% zoom, because it is measured in
logical coordinates, but not in physical ones, which are
bigger.

BUG:360541
Fixes T2299
parent 83a05fff
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