diff options
author | Ruslan Mustakov <r.mustakov@gmail.com> | 2018-05-11 13:59:56 +0700 |
---|---|---|
committer | Ruslan Mustakov <r.mustakov@gmail.com> | 2018-05-11 13:59:56 +0700 |
commit | f34ea810fed6b14eef5f2aaae5438287cc2dbd19 (patch) | |
tree | 409a0c11b9c287530843d2e8941d07834ff84b28 /scene | |
parent | 74796d9b6cf1663029a5fa6b5024b236746e506a (diff) |
Update oversampling of outlines after window size change
Fixes #18774.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/dynamic_font.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index f41a26a680..f0870349d9 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -1080,6 +1080,11 @@ void DynamicFont::update_oversampling() { if (E->self()->data_at_size.is_valid()) { E->self()->data_at_size->update_oversampling(); + + if (E->self()->outline_data_at_size.is_valid()) { + E->self()->outline_data_at_size->update_oversampling(); + } + changed.push_back(Ref<DynamicFont>(E->self())); } E = E->next(); |