aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-09 09:46:31 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-09 10:40:32 +0200
commit840e7f172ce3b805dc5c3e4889e1166159942dc3 (patch)
tree8f99f8ae164b8039621d287ac7de7726ab9dd141 /fiv-io.c
parent9b99de99bbe2d87ee62bb72931a22f2551fa470e (diff)
downloadfiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.tar.gz
fiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.tar.xz
fiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.zip
Colour-manage SVGs
Diffstat (limited to 'fiv-io.c')
-rw-r--r--fiv-io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 6bbb128..83f9c25 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -2310,11 +2310,11 @@ load_resvg_render_internal(FivIoRenderClosureResvg *self,
}
static FivIoImage *
-load_resvg_render(FivIoRenderClosure *closure, double scale)
+load_resvg_render(
+ FivIoRenderClosure *closure, FivIoProfile target, double scale)
{
FivIoRenderClosureResvg *self = (FivIoRenderClosureResvg *) closure;
- // TODO(p): Somehow get the target colour management profile.
- return load_resvg_render_internal(self, scale, NULL, NULL);
+ return load_resvg_render_internal(self, scale, target, NULL);
}
static const char *
@@ -2434,11 +2434,11 @@ load_librsvg_render_internal(FivIoRenderClosureLibrsvg *self, double scale,
}
static FivIoImage *
-load_librsvg_render(FivIoRenderClosure *closure, double scale)
+load_librsvg_render(
+ FivIoRenderClosure *closure, FivIoProfile target, double scale)
{
FivIoRenderClosureLibrsvg *self = (FivIoRenderClosureLibrsvg *) closure;
- // TODO(p): Somehow get the target colour management profile.
- return load_librsvg_render_internal(self, scale, NULL, NULL);
+ return load_librsvg_render_internal(self, scale, target, NULL);
}
static FivIoImage *