diff options
author | John Fultz <jfultz@wolfram.com> | 2019-08-11 08:26:26 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-08-11 08:26:26 -0500 |
commit | 61aa7d337a045759e06803c89b5f364ca4ed26b1 (patch) | |
tree | 697ccd79d7422de0f6223925aed43caa856b8ab3 /quacker/view.cpp | |
parent | 5deb07e6f33b1bfa9ea655ee14700dc126f04537 (diff) |
Fix devicePixelRatios on tile pixmap after dragging it.
Apparently, when you serialize a pixmap through a QDataStream(), it loses
track of its devicePixelRatio setting. End rule was that if, on a HiDpi
screen, you dragged and dropped a tile within the rack, you'd get a tile that
was larger than it should have been by a factor of the default pixel ratio.
Solution is to simply reapply the pixel ratio to the newly created Pixmap
after deserializing it in the drag-drop code.
Diffstat (limited to 'quacker/view.cpp')
0 files changed, 0 insertions, 0 deletions