Merge pull request #92808 from bruvzg/fix_ci_updates

Fix excessive canvas items updates.
This commit is contained in:
Rémi Verschelde 2024-06-06 00:30:06 +02:00 committed by GitHub
commit 56a8db109c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1229,14 +1229,12 @@ void Window::_update_viewport_size() {
}
if (!Math::is_equal_approx(TS->font_get_global_oversampling(), font_oversampling)) {
TS->font_set_global_oversampling(font_oversampling);
ci_updated = false;
if (!ci_updated) {
update_canvas_items();
}
}
}
if (!ci_updated) {
update_canvas_items();
}
notification(NOTIFICATION_WM_SIZE_CHANGED);
if (embedder) {