diff options
Diffstat (limited to 'tools/editor/editor_scale.h')
-rw-r--r-- | tools/editor/editor_scale.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/editor/editor_scale.h b/tools/editor/editor_scale.h new file mode 100644 index 0000000000..a60cf00f0a --- /dev/null +++ b/tools/editor/editor_scale.h @@ -0,0 +1,8 @@ +#ifndef EDITOR_SCALE_H +#define EDITOR_SCALE_H + +void editor_set_hidpi(bool p_hidpi); +bool editor_is_hidpi(); + +#define EDSCALE (editor_is_hidpi() ? 2 : 1) +#endif // EDITOR_SCALE_H |