summaryrefslogtreecommitdiff
path: root/editor/plugins/gradient_editor_plugin.cpp
diff options
context:
space:
mode:
authorjohan <johan.duparc@gmail.com>2020-03-18 02:05:23 -0400
committerjohan <johan.duparc@gmail.com>2020-03-18 12:37:14 -0400
commit1c02906a6fa7ca1224345fe3ae19ab9879165a0a (patch)
tree8e91848fec0fb767f562d1499734f505c47e751c /editor/plugins/gradient_editor_plugin.cpp
parent0d907a6320f880dcfaa996c28b88c6f5e0677202 (diff)
Editor 2D: Change pixel alignment strategy, fix jittering in high zoom
Alignment of scene pixels on screen pixel ensure a crisp rendering of small features (such as text). Unfortunately, alignment of top left pixel on screen adds a lot of jittering when zooming at high zoom factor. This change allow to snap the top left scene pixel on the closest screen pixel (not only the top-left most), and we do so only when the scale factor is an integer.
Diffstat (limited to 'editor/plugins/gradient_editor_plugin.cpp')
0 files changed, 0 insertions, 0 deletions