Skip to content

Commit 864a93f

Browse files
committed
Fix excessive canvas items updates.
1 parent 96a386f commit 864a93f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scene/main/window.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,14 +1229,12 @@ void Window::_update_viewport_size() {
12291229
}
12301230
if (!Math::is_equal_approx(TS->font_get_global_oversampling(), font_oversampling)) {
12311231
TS->font_set_global_oversampling(font_oversampling);
1232-
ci_updated = false;
1232+
if (!ci_updated) {
1233+
update_canvas_items();
1234+
}
12331235
}
12341236
}
12351237

1236-
if (!ci_updated) {
1237-
update_canvas_items();
1238-
}
1239-
12401238
notification(NOTIFICATION_WM_SIZE_CHANGED);
12411239

12421240
if (embedder) {

0 commit comments

Comments
 (0)