diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-07-09 09:46:31 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-07-09 10:40:32 +0200 |
commit | 840e7f172ce3b805dc5c3e4889e1166159942dc3 (patch) | |
tree | 8f99f8ae164b8039621d287ac7de7726ab9dd141 /fiv-io.c | |
parent | 9b99de99bbe2d87ee62bb72931a22f2551fa470e (diff) | |
download | fiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.tar.gz fiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.tar.xz fiv-840e7f172ce3b805dc5c3e4889e1166159942dc3.zip |
Colour-manage SVGs
Diffstat (limited to 'fiv-io.c')
-rw-r--r-- | fiv-io.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 * |