https://bugs.kde.org/show_bug.cgi?id=360541
Boudewijn Rempt <b...@valdyas.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://commits.kde.org/kri |https://commits.kde.org/kri |ta/9d95d8d5386eecba733392c5 |ta/3d77d9f5bae507e8461acc84 |514f230c82f65ee5 |6389bac207849bb5 --- Comment #29 from Boudewijn Rempt <b...@valdyas.org> --- Git commit 3d77d9f5bae507e8461acc846389bac207849bb5 by Boudewijn Rempt, on behalf of Dmitry Kazakov. Committed on 10/10/2018 at 07:40. Pushed by rempt into branch 'krita/4.1'. 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. Fixes T2299 (cherry picked from commit 9d95d8d5386eecba733392c5514f230c82f65ee5) M +1 -1 libs/ui/KisMainWindow.cpp M +3 -0 libs/ui/KisMainWindow.h M +7 -0 libs/ui/KisView.cpp M +2 -0 libs/ui/KisView.h M +1 -0 libs/ui/canvas/kis_canvas2.cpp M +19 -1 libs/ui/canvas/kis_coordinates_converter.cpp M +2 -0 libs/ui/canvas/kis_coordinates_converter.h M +32 -5 libs/ui/kis_zoom_manager.cc M +6 -0 libs/ui/kis_zoom_manager.h M +2 -1 libs/ui/opengl/kis_opengl_canvas2.cpp https://commits.kde.org/krita/3d77d9f5bae507e8461acc846389bac207849bb5 -- You are receiving this mail because: You are watching all bug changes.