Skip to content

Commit

Permalink
Merge pull request #85 from Norrox/blaze-dev
Browse files Browse the repository at this point in the history
Fix the alpha around the project icon
  • Loading branch information
Bioblaze authored Oct 20, 2024
2 parents 53184b6 + 8892b7e commit fd95bb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/project_manager/project_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ void ProjectList::_load_project_icon(int p_index) {
img.instantiate();
Error err = img->load(item.icon.replace_first("res://", item.path + "/"));
if (err == OK) {
img->resize(default_icon->get_width(), default_icon->get_height(), Image::INTERPOLATE_LANCZOS);
img->convert(Image::FORMAT_RGBA8);
img->fix_alpha_edges();
img->resize(default_icon->get_width(), default_icon->get_height(), Image::INTERPOLATE_CUBIC);
icon = ImageTexture::create_from_image(img);
}
}
Expand Down

0 comments on commit fd95bb9

Please sign in to comment.