diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-01-26 18:37:38 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-01-26 19:17:54 +0100 |
commit | 3c8a280546e3ec19c3246afada2d488880fc3222 (patch) | |
tree | fe95a502ea4b2ea9e20fcd1cea7045b1e67508e8 /fiv-thumbnail.c | |
parent | 96189b70b85f939401a40364b222b91f905d291a (diff) | |
download | fiv-3c8a280546e3ec19c3246afada2d488880fc3222.tar.gz fiv-3c8a280546e3ec19c3246afada2d488880fc3222.tar.xz fiv-3c8a280546e3ec19c3246afada2d488880fc3222.zip |
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.
Diffstat (limited to 'fiv-thumbnail.c')
-rw-r--r-- | fiv-thumbnail.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |