summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-26 21:09:49 +0100
committerGitHub <noreply@github.com>2019-02-26 21:09:49 +0100
commitaea5980f012c1094b116a1bcb4c37e63a83e4ecc (patch)
tree7de72a0e786d4ccf8a72b5e121397c58ae69f70a /editor
parentce114e35dda4b3f282abb458f8409db2369b279e (diff)
parent5ec64d30b1702c0ef4754e31b4ac235aa1b304f9 (diff)
Merge pull request #26314 from jahd2602/export-icon-dpi-fix
Resize native run button according to editor scale.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_run_native.cpp3
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);