diff options
author | Jairo Honorio <registrofx@gmail.com> | 2019-02-26 12:26:24 -0300 |
---|---|---|
committer | Jairo Honorio <registrofx@gmail.com> | 2019-02-26 12:57:43 -0300 |
commit | 5ec64d30b1702c0ef4754e31b4ac235aa1b304f9 (patch) | |
tree | 2d1bae8f6bea94d6870c7a178e839236670282a0 | |
parent | 5eeb06ffd1bf9cc79142760c372c17cd858cbe49 (diff) |
Resize native run button according to editor scale.
-rw-r--r-- | editor/editor_run_native.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_run_native.cpp b/editor/editor_run_native.cpp index 887a102aa4..06cadca1c0 100644 --- a/editor/editor_run_native.cpp +++ b/editor/editor_run_native.cpp @@ -32,6 +32,7 @@ #include "editor_export.h" #include "editor_node.h" +#include "editor_scale.h" void EditorRunNative::_notification(int p_what) { @@ -49,7 +50,7 @@ void EditorRunNative::_notification(int p_what) { im->clear_mipmaps(); if (!im->empty()) { - im->resize(16, 16); + im->resize(16 * EDSCALE, 16 * EDSCALE); Ref<ImageTexture> small_icon; small_icon.instance(); small_icon->create_from_image(im, 0); |