aboutsummaryrefslogtreecommitdiff
path: root/fiv-view.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-01-28 01:13:15 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-01-28 01:13:15 +0100
commit501dc123ada348f18cac7ed05c812b5e633bd2ef (patch)
tree149e157778c320100ab7bf0e676695ae4f57c962 /fiv-view.c
parent6b4759b63af5d5724c40be516d886b6f9fb0026d (diff)
downloadfiv-501dc123ada348f18cac7ed05c812b5e633bd2ef.tar.gz
fiv-501dc123ada348f18cac7ed05c812b5e633bd2ef.tar.xz
fiv-501dc123ada348f18cac7ed05c812b5e633bd2ef.zip
WIP: Thread-safe colour managementthread-safe-cmm-wip
Diffstat (limited to 'fiv-view.c')
-rw-r--r--fiv-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fiv-view.c b/fiv-view.c
index 9f6492a..f248ddc 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -417,7 +417,7 @@ prescale_page(FivView *self)
// If it fails, the previous frame pointer may become invalid.
g_clear_pointer(&self->page_scaled, fiv_io_image_unref);
self->frame = self->page_scaled = closure->render(closure,
- fiv_io_cmm_get_default(),
+ self->enable_cms ? fiv_io_cmm_get_default() : NULL,
self->enable_cms ? self->screen_cms_profile : NULL, self->scale);
if (!self->page_scaled)
self->frame = self->page;