mirror of
https://github.com/godotengine/godot.git
synced 2025-03-19 23:53:32 +08:00
Fix:code editor text size should change at least one each time, don't mind how you setting your display scale
(cherry picked from commit eeb05344267580a25bc59d3c363537ade363f82e)
This commit is contained in:
parent
4aad40d249
commit
4fbb460a02
@ -646,12 +646,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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user