[macOS] Implement seamless display scaling.

This commit is contained in:
bruvzg
2020-07-04 10:36:33 +03:00
parent b51418842a
commit df968d577a
9 changed files with 294 additions and 241 deletions
+1
View File
@@ -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;