Przeglądaj źródła

Fixes FileSystem tree preview icon size on HiDPI

(cherry picked from commit b28fc2df0707d4e43e49575f7df6d1e47d765ce0)
Haoyu Qiu 5 lat temu
rodzic
commit
c8a9f700c3
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0 1
      editor/editor_resource_preview.cpp

+ 0 - 1
editor/editor_resource_preview.cpp

@@ -172,7 +172,6 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref<
 			return;
 			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
 		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()) {
 		if (preview_generators[i]->can_generate_small_preview()) {
 			Ref<Texture> generated_small;
 			Ref<Texture> generated_small;