Background button: Fix thumbnail interpolation

This commit is contained in:
Romain Vigier
2022-06-17 08:50:50 +02:00
parent c00af04c94
commit de5f9d7ba7
+1 -1
View File
@@ -146,7 +146,7 @@ var BackgroundButton = GObject.registerClass({
width, height, width, height,
-(pixbuf.width * scale - width) / 2, -(pixbuf.height * scale - height) / 2, -(pixbuf.width * scale - width) / 2, -(pixbuf.height * scale - height) / 2,
scale, scale, scale, scale,
GdkPixbuf.InterpType.GDK_INTERP_BILINEAR GdkPixbuf.InterpType.TILES
); );
return Gdk.Texture.new_for_pixbuf(thumbPixbuf); return Gdk.Texture.new_for_pixbuf(thumbPixbuf);