summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2020-07-03 13:06:03 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-07-04 10:36:33 +0300
commitdf968d577ac6d1bca223cdaec83940bfb36ade64 (patch)
tree1f980bfaf9fcb2669b427f85a6ebfd0fc6266a83 /scene
parentb51418842ae684ea201247c6df32092d784e6db0 (diff)
[macOS] Implement seamless display scaling.
Diffstat (limited to 'scene')
-rw-r--r--scene/main/window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index 48540b7bc9..ae30972558 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -338,6 +338,7 @@ void Window::_event_callback(DisplayServer::WindowEvent p_event) {
emit_signal("go_back_requested");
} break;
case DisplayServer::WINDOW_EVENT_DPI_CHANGE: {
+ _update_viewport_size();
_propagate_window_notification(this, NOTIFICATION_WM_DPI_CHANGE);
emit_signal("dpi_changed");
} break;