[macOS] Implement seamless display scaling.

This commit is contained in:
bruvzg 2020-07-03 13:06:03 +03:00
parent b51418842a
commit df968d577a
No known key found for this signature in database
GPG key ID: FCED35F1CECE0D3A
9 changed files with 294 additions and 241 deletions

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;