1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Resize native run button according to editor scale.

This commit is contained in:
Jairo Honorio
2019-02-26 12:26:24 -03:00
parent 5eeb06ffd1
commit 5ec64d30b1

View File

@@ -32,6 +32,7 @@
#include "editor_export.h" #include "editor_export.h"
#include "editor_node.h" #include "editor_node.h"
#include "editor_scale.h"
void EditorRunNative::_notification(int p_what) { void EditorRunNative::_notification(int p_what) {
@@ -49,7 +50,7 @@ void EditorRunNative::_notification(int p_what) {
im->clear_mipmaps(); im->clear_mipmaps();
if (!im->empty()) { if (!im->empty()) {
im->resize(16, 16); im->resize(16 * EDSCALE, 16 * EDSCALE);
Ref<ImageTexture> small_icon; Ref<ImageTexture> small_icon;
small_icon.instance(); small_icon.instance();
small_icon->create_from_image(im, 0); small_icon->create_from_image(im, 0);