Background button: Use original color space for thumbnail

This commit is contained in:
Romain Vigier
2022-06-17 08:50:25 +02:00
parent befc82ec65
commit c00af04c94
+1 -1
View File
@@ -139,7 +139,7 @@ var BackgroundButton = GObject.registerClass({
const pixbuf = GdkPixbuf.Pixbuf.new_from_file(path);
const scale = pixbuf.width / pixbuf.height > width / height ? height / pixbuf.height : width / pixbuf.width;
const thumbPixbuf = GdkPixbuf.Pixbuf.new(GdkPixbuf.Colorspace.GDK_COLORSPACE_RGB, pixbuf.has_alpha, pixbuf.bits_per_sample, width, height);
const thumbPixbuf = GdkPixbuf.Pixbuf.new(pixbuf.colorspace, pixbuf.has_alpha, pixbuf.bits_per_sample, width, height);
pixbuf.scale(
thumbPixbuf,
0, 0,