1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

[macOS] Implement seamless display scaling.

This commit is contained in:
bruvzg
2020-07-03 13:06:03 +03:00
parent b51418842a
commit df968d577a
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;