summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-09-30 15:46:07 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-09-30 15:46:52 +0800
commitb28fc2df0707d4e43e49575f7df6d1e47d765ce0 (patch)
tree21e8e9e08170cd01b98e73842b7e62d5654e91a9
parent1b3d85e8bfce4550b62eaa632aecc204142e7762 (diff)
Fixes FileSystem tree preview icon size on HiDPI
-rw-r--r--editor/editor_resource_preview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp
index d2250fed7a..3170ea5ff8 100644
--- a/editor/editor_resource_preview.cpp
+++ b/editor/editor_resource_preview.cpp
@@ -164,7 +164,6 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref<
r_texture = generated;
int small_thumbnail_size = EditorNode::get_singleton()->get_theme_base()->get_theme_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<Texture2D> generated_small;