1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix:code editor text size should change at least one each time, don't mind how you setting your display scale

This commit is contained in:
RaphaelHunter
2018-05-05 15:40:35 +08:00
parent fc9fad925b
commit eeb0534426

View File

@@ -650,12 +650,12 @@ void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {
}
void CodeTextEditor::_zoom_in() {
font_resize_val += EDSCALE;
font_resize_val += MAX(EDSCALE, 1.0f);
_zoom_changed();
}
void CodeTextEditor::_zoom_out() {
font_resize_val -= EDSCALE;
font_resize_val -= MAX(EDSCALE, 1.0f);
_zoom_changed();
}