GUI: fix icon sizes and exterminate gamelist bug

recreate old icon size values
This commit is contained in:
Megamouse 2017-07-30 22:13:59 +02:00 committed by Ivan
parent 02845f546e
commit d51a986dd4
4 changed files with 30 additions and 9 deletions

View file

@ -749,6 +749,16 @@ void game_list_frame::ResizeIcons(const int& sliderPos)
m_Slider_Size->setSliderPosition(sliderPos);
}
RepaintIcons();
}
void game_list_frame::RepaintIcons(const QColor& color)
{
if (color.isValid())
{
m_Icon_Color = color;
}
for (auto& game : m_game_data)
{
game.pxmap = PaintedPixmap(game.icon, game.hasCustomConfig);