mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Error loading image fix
This commit is contained in:
parent
c9a789bf76
commit
7be259217a
@ -332,21 +332,24 @@ void ColumnsArr::Update(const std::vector<GameInfo>& game_data)
|
||||
for (const auto& path : m_col_icon->data)
|
||||
{
|
||||
wxImage game_icon(80, 44);
|
||||
if (!path.empty())
|
||||
{
|
||||
wxLogNull logNo; // temporary disable wx warnings ("iCCP: known incorrect sRGB profile" spamming)
|
||||
if (game_icon.LoadFile(fmt::FromUTF8(path), wxBITMAP_TYPE_PNG))
|
||||
{
|
||||
game_icon.Rescale(80, 44, wxIMAGE_QUALITY_HIGH);
|
||||
m_icon_indexes.push_back(m_img_list->Add(game_icon));
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_ERROR(GENERAL, "Error loading image %s", path);
|
||||
}
|
||||
}
|
||||
|
||||
m_icon_indexes.push_back(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ColumnsArr::Show(wxListView* list)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user