From 5ec64d30b1702c0ef4754e31b4ac235aa1b304f9 Mon Sep 17 00:00:00 2001 From: Jairo Honorio Date: Tue, 26 Feb 2019 12:26:24 -0300 Subject: [PATCH] Resize native run button according to editor scale. --- editor/editor_run_native.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_run_native.cpp b/editor/editor_run_native.cpp index 887a102aa46..06cadca1c08 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 small_icon; small_icon.instance(); small_icon->create_from_image(im, 0);