icon sizing fix

This commit is contained in:
raven02 2014-12-14 16:21:38 +08:00
parent 8b4de95919
commit 6c571b30d2
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ public:
void Init()
{
m_img_list = new wxImageList(56, 31);
m_img_list = new wxImageList(58, 32);
m_columns.clear();
m_columns.emplace_back(m_columns.size(), 75, "Icon");
@ -130,11 +130,11 @@ public:
// load icons
for (const auto& path : m_col_icon->data)
{
wxImage game_icon(56, 31);
wxImage game_icon(58, 32);
{
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(56, 31);
game_icon.Rescale(58, 32);
}
m_icon_indexes.push_back(m_img_list->Add(game_icon));