diff options
| author | RaphaelHunter | 2018-05-05 15:40:35 +0800 |
|---|---|---|
| committer | RaphaelHunter | 2018-05-07 17:50:44 +0800 |
| commit | eeb05344267580a25bc59d3c363537ade363f82e (patch) | |
| tree | 3176885fd6800d7dd95429f4955c2c47f9575a9b /editor/code_editor.cpp | |
| parent | fc9fad925b7e406729748660d9079011cb40a96b (diff) | |
| download | godot-eeb05344267580a25bc59d3c363537ade363f82e.tar.gz godot-eeb05344267580a25bc59d3c363537ade363f82e.tar.zst godot-eeb05344267580a25bc59d3c363537ade363f82e.zip | |
Diffstat (limited to 'editor/code_editor.cpp')
| -rw-r--r-- | editor/code_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 19bcb28fa..24e86770b 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -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(); } |
