summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-08-27 00:27:10 +0200
committerHein-Pieter van Braam <hp@tmm.cx>2017-08-27 00:27:10 +0200
commita27632032977bc3ef3d6dca3d454a1420bc69339 (patch)
treef6f6696666985af612a8a2614dcdba16f3ffe2e7
parent53c0010932f9c1becb63c16243f3a00ede359989 (diff)
Always size project icons to default icon size
I wasn't able to reproduce the issue, but this should fix #10620
-rw-r--r--editor/project_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 0d57fe05b9..9cb110a2ca 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -805,7 +805,8 @@ void ProjectManager::_load_recent_projects() {
Error err = img->load(appicon.replace_first("res://", path + "/"));
if (err == OK) {
- img->resize(64, 64);
+ Ref<Texture> default_icon = get_icon("DefaultProjectIcon", "EditorIcons");
+ img->resize(default_icon->get_width(), default_icon->get_height());
Ref<ImageTexture> it = memnew(ImageTexture);
it->create_from_image(img);
icon = it;