diff options
author | David Giardi <david.giardi.eng@gmail.com> | 2023-04-16 14:15:53 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-04-24 17:08:55 +0200 |
commit | 75f3ce618ec70e955829c17c131ed815f97ff7cd (patch) | |
tree | a8fb67e806fd080582dfe80e06d963eaf9a69b81 /editor/editor_data.cpp | |
parent | f39f3543134ade65b24ab2aed0abf1e356a0d3df (diff) |
Fix blurry borders on antialiased FlatStyleBox
This is a fix of the antialiasing logic of FlatStyleBox.
It is now possible to have smooth rounded corners while keeping
the edges sharp on the pixels.
The antialiasing gradient positioning is ajusted so that the "hard"
border corresponds to the middle of that gradient instead of one end.
Checked against rendering of rounded rectangles in a vector graphics
software.
(cherry picked from commit 2ef20045b1282369585c3395ff9f9ae418394817)
Diffstat (limited to 'editor/editor_data.cpp')
0 files changed, 0 insertions, 0 deletions