mirror of
https://github.com/lutris/lutris
synced 2024-11-02 11:48:38 +00:00
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:
parent
d5e9a1e34c
commit
07eae9bb3c
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue