mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
Qt: release scaled pixmaps from memory if possible
This commit is contained in:
parent
4d70c483b2
commit
2fb68bfc03
3 changed files with 16 additions and 5 deletions
|
@ -2289,7 +2289,7 @@ void game_list_frame::PopulateGameList()
|
|||
|
||||
icon_item->set_icon_func([this, icon_item, game](int)
|
||||
{
|
||||
ensure(icon_item);
|
||||
ensure(icon_item && game);
|
||||
|
||||
if (QMovie* movie = icon_item->movie(); movie && icon_item->get_active())
|
||||
{
|
||||
|
@ -2298,6 +2298,12 @@ void game_list_frame::PopulateGameList()
|
|||
else
|
||||
{
|
||||
icon_item->setData(Qt::DecorationRole, game->pxmap);
|
||||
|
||||
if (!game->has_hover_gif)
|
||||
{
|
||||
game->pxmap = {};
|
||||
}
|
||||
|
||||
if (movie)
|
||||
{
|
||||
movie->stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue