From 3c8a280546e3ec19c3246afada2d488880fc3222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 26 Jan 2024 18:37:38 +0100 Subject: Move colour management to its own compilation unit Also make it apparent that CMM profiles are pointer types. This isn't all that pretty, but it's a necessary first step. --- fiv-thumbnail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fiv-thumbnail.c') diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c index cc0858c..6ff1246 100644 --- a/fiv-thumbnail.c +++ b/fiv-thumbnail.c @@ -182,7 +182,7 @@ adjust_thumbnail(FivIoImage *thumbnail, double row_height) FivIoRenderClosure *closure = thumbnail->render; if (closure && orientation <= FivIoOrientation0) { // Remember to synchronize changes with render(). - FivIoProfile screen_profile = fiv_io_profile_new_sRGB(); + FivIoProfile *screen_profile = fiv_io_profile_new_sRGB(); // This API doesn't accept non-uniform scaling; prefer a vertical fit. FivIoImage *scaled = closure->render(closure, screen_profile, scale_y); if (screen_profile) -- cgit v1.2.3