diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-11 13:43:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-11 13:43:51 +0200 |
commit | 0f942764ff6a0994f4b5794ddf0d5dd3e5bf91d7 (patch) | |
tree | 409a0c11b9c287530843d2e8941d07834ff84b28 /scene/resources | |
parent | 74796d9b6cf1663029a5fa6b5024b236746e506a (diff) | |
parent | f34ea810fed6b14eef5f2aaae5438287cc2dbd19 (diff) |
Merge pull request #18789 from endragor/fix-oversampled-outline-update
Update oversampling of outlines after window size change
Diffstat (limited to 'scene/resources')
-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(); |