From 3149493679db93dfb854f0857ddbaff81b410bd9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 26 Jul 2024 19:02:52 -0400 Subject: [PATCH] jpeg: Set downloader color state explictly This avoids surprises. --- gdk/loaders/gdkjpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/loaders/gdkjpeg.c b/gdk/loaders/gdkjpeg.c index 7af789d982..a105f5dd20 100644 --- a/gdk/loaders/gdkjpeg.c +++ b/gdk/loaders/gdkjpeg.c @@ -307,6 +307,7 @@ gdk_save_jpeg (GdkTexture *texture) gdk_texture_downloader_init (&downloader, texture); gdk_texture_downloader_set_format (&downloader, GDK_MEMORY_R8G8B8); + gdk_texture_downloader_set_color_state (&downloader, GDK_COLOR_STATE_SRGB); texbytes = gdk_texture_downloader_download_bytes (&downloader, &texstride); gdk_texture_downloader_finish (&downloader); texdata = g_bytes_get_data (texbytes, NULL);