https://bugs.kde.org/show_bug.cgi?id=360541
Dmitry Kazakov <dimul...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://commits.kde.org/kri | |ta/9d95d8d5386eecba733392c5 | |514f230c82f65ee5 Resolution|--- |FIXED Status|CONFIRMED |RESOLVED --- Comment #28 from Dmitry Kazakov <dimul...@gmail.com> --- Git commit 9d95d8d5386eecba733392c5514f230c82f65ee5 by Dmitry Kazakov. Committed on 07/10/2018 at 21:50. Pushed by dkazakov into branch 'master'. 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 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/9d95d8d5386eecba733392c5514f230c82f65ee5 -- You are receiving this mail because: You are watching all bug changes.