Adjust size when 'fading out' an uninstalled game

The faded pixbuf should be the same size as the unfaded one,
This commit is contained in:
Daniel Johnson 2023-01-19 19:21:58 -05:00
parent d5e9a1e34c
commit 07eae9bb3c

View file

@ -55,14 +55,16 @@ def get_pixbuf(image, size, fallback=None, is_installed=True):
if is_installed and pixbuf:
return pixbuf
overlay = os.path.join(datapath.get(), "media/unavailable.png")
if pixbuf:
size = (pixbuf.get_width(), pixbuf.get_height())
transparent_pixbuf = get_overlay(overlay, size).copy()
if pixbuf:
pixbuf.composite(
transparent_pixbuf,
0,
0,
width,
height,
size[0],
size[1],
0,
0,
1,