From c8a9f700c39046453e1df315393ec46c5c9eed97 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 30 Sep 2020 15:46:07 +0800 Subject: [PATCH] Fixes FileSystem tree preview icon size on HiDPI (cherry picked from commit b28fc2df0707d4e43e49575f7df6d1e47d765ce0) --- editor/editor_resource_preview.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp index fcebd14ea9c..9c39ef4811b 100644 --- a/editor/editor_resource_preview.cpp +++ b/editor/editor_resource_preview.cpp @@ -172,7 +172,6 @@ void EditorResourcePreview::_generate_preview(Ref &r_texture, Ref< return; int small_thumbnail_size = EditorNode::get_singleton()->get_theme_base()->get_icon("Object", "EditorIcons")->get_width(); // Kind of a workaround to retrieve the default icon size - small_thumbnail_size *= EDSCALE; if (preview_generators[i]->can_generate_small_preview()) { Ref generated_small;