EditorSettings: Factor code to compute auto display scale

Also fixes typo introduced in https://github.com/godotengine/godot/pull/48597/files#r652636544.
This commit is contained in:
Rémi Verschelde 2021-06-16 14:36:09 +02:00
parent badad53438
commit f862f9a056
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 31 additions and 82 deletions

View file

@ -174,6 +174,7 @@ public:
Vector<String> get_script_templates(const String &p_extension, const String &p_custom_path = String());
String get_editor_layouts_config() const;
float get_auto_display_scale() const;
void add_shortcut(const String &p_name, Ref<Shortcut> &p_shortcut);
bool is_shortcut(const String &p_name, const Ref<InputEvent> &p_event) const;