From 501dc123ada348f18cac7ed05c812b5e633bd2ef Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 28 Jan 2024 01:13:15 +0100 Subject: WIP: Thread-safe colour management --- fiv-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fiv-view.c') 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; -- cgit v1.2.3-70-g09d2