From cd057185271970995d3dc7fc853b280c1895b382 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 6 Aug 2012 11:36:33 +1000 Subject: [PATCH] update flip.im with IMAGER_NO_CONTEXT --- flip.im | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flip.im b/flip.im index 5bb1c74f..d286b91f 100644 --- a/flip.im +++ b/flip.im @@ -1,3 +1,4 @@ +#define IMAGER_NO_CONTEXT #include "imager.h" static void flip_h(i_img *im); @@ -22,9 +23,10 @@ Returns 0 if parameters are invalid. undef_int i_flipxy(i_img *im, int direction) { + dIMCTXim(im); i_clear_error(); - mm_log((1, "i_flipxy(im %p, direction %d)\n", im, direction )); + im_log((aIMCTX, 1, "i_flipxy(im %p, direction %d)\n", im, direction )); if (!im) return 0; @@ -43,10 +45,9 @@ i_flipxy(i_img *im, int direction) { break; default: - mm_log((1, "i_flipxy: direction is invalid\n" )); - i_push_errorf(0, "direction %d invalid", direction); + im_log((aIMCTX, 1, "i_flipxy: direction is invalid\n" )); + im_push_errorf(aIMCTX, 0, "direction %d invalid", direction); return 0; - } return 1; } -- 2.39.5