Merge pull request #42426 from timothyqiu/thumbnail-size
Fix FileSystem tree preview icon size on HiDPI
This commit is contained in:
commit
39a93c007d
|
@ -164,7 +164,6 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref<
|
||||||
r_texture = generated;
|
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
|
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()) {
|
if (preview_generators[i]->can_generate_small_preview()) {
|
||||||
Ref<Texture2D> generated_small;
|
Ref<Texture2D> generated_small;
|
||||||
|
|
Loading…
Reference in New Issue