X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2Fimage-tool.c;h=b211f1969852a999ef52777a8c22a9db8ef2b1a9;hb=7462f9e27978542b37e1745b9a8fa80fb07dab3d;hp=5063d9b65382bf484d6e51b60aac6ff33764e257;hpb=926b7db85c2f2f34bf734ee1bcbfeea9a0d01808;p=libucw.git diff --git a/images/image-tool.c b/images/image-tool.c index 5063d9b6..b211f196 100644 --- a/images/image-tool.c +++ b/images/image-tool.c @@ -84,7 +84,7 @@ parse_color(struct color *color, byte *s) color_make_rgb(color, (v >> 16) & 255, (v >> 8) & 255, v & 255); } -#define MSG(x...) do{ if (verbose) log(L_INFO, ##x); }while(0) +#define MSG(x...) do{ if (verbose) msg(L_INFO, ##x); }while(0) int main(int argc, char **argv) @@ -184,7 +184,7 @@ main(int argc, char **argv) if (io.background_color.color_space) { byte rgb[3]; - color_put_rgb(rgb, &io.background_color); + TRY(color_put(&ctx, &io.background_color, rgb, COLOR_SPACE_RGB)); printf("Background: %02x%02x%02x\n", rgb[0], rgb[1], rgb[2]); } if (io.exif_size)