Skip to content

Commit 3d2b3cf

Browse files
committed
Use the canvas_items stretch mode by default
This is the stretch mode that works best for non-pixel art 2D and 3D games in general (and even many pixel art games, provided texture filtering is disabled). The `canvas_items` stretch mode also ensures that 2D elements are always scaled to a readable size, even at high resolutions. This is especially important when targeting mobile platforms. The difference is immediately noticeable when running a new project in the experimental editor Android port :) Since most people are using Godot to develop games (rather than applications), it makes sense to use a stretch mode that works best for games by default.
1 parent a754930 commit 3d2b3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2823,7 +2823,7 @@ bool Main::start() {
28232823
startup_benchmark_file = String();
28242824
}
28252825
#endif
2826-
GLOBAL_DEF_BASIC("display/window/stretch/mode", "disabled");
2826+
GLOBAL_DEF_BASIC("display/window/stretch/mode", "canvas_items");
28272827
ProjectSettings::get_singleton()->set_custom_property_info("display/window/stretch/mode",
28282828
PropertyInfo(Variant::STRING,
28292829
"display/window/stretch/mode",

0 commit comments

Comments
 (0)