You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-07 19:53:17 +00:00
Add viewport content scale
This commit is contained in:
@@ -681,7 +681,7 @@ void Window::_update_viewport_size() {
|
||||
|
||||
} break;
|
||||
case CONTENT_SCALE_MODE_VIEWPORT: {
|
||||
final_size = viewport_size;
|
||||
final_size = (viewport_size / content_scale_factor).floor();
|
||||
attach_to_screen_rect = Rect2(margin, screen_size);
|
||||
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user