|
@@ -1142,10 +1142,6 @@ void SceneTree::_update_root_rect() {
|
|
float viewport_aspect = desired_res.aspect();
|
|
float viewport_aspect = desired_res.aspect();
|
|
float video_mode_aspect = video_mode.aspect();
|
|
float video_mode_aspect = video_mode.aspect();
|
|
|
|
|
|
- if (use_font_oversampling && stretch_aspect == STRETCH_ASPECT_IGNORE) {
|
|
|
|
- WARN_PRINT("Font oversampling only works with the stretch modes \"Keep Width\", \"Keep Height\" and \"Expand\", not \"Ignore\". To remove this warning, disable Rendering > Quality > Dynamic Fonts > Use Oversampling in the Project Settings.");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (stretch_aspect == STRETCH_ASPECT_IGNORE || Math::is_equal_approx(viewport_aspect, video_mode_aspect)) {
|
|
if (stretch_aspect == STRETCH_ASPECT_IGNORE || Math::is_equal_approx(viewport_aspect, video_mode_aspect)) {
|
|
//same aspect or ignore aspect
|
|
//same aspect or ignore aspect
|
|
viewport_size = desired_res;
|
|
viewport_size = desired_res;
|
|
@@ -1220,10 +1216,6 @@ void SceneTree::_update_root_rect() {
|
|
root->set_size_override(false, Size2());
|
|
root->set_size_override(false, Size2());
|
|
root->update_canvas_items(); //force them to update just in case
|
|
root->update_canvas_items(); //force them to update just in case
|
|
|
|
|
|
- if (use_font_oversampling) {
|
|
|
|
- WARN_PRINT("Font oversampling does not work in \"Viewport\" stretch mode, only \"2D\". To remove this warning, disable Rendering > Quality > Dynamic Fonts > Use Oversampling in the Project Settings.");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
} break;
|
|
} break;
|
|
}
|
|
}
|
|
}
|
|
}
|