]> git.imager.perl.org - imager.git/commitdiff
update conv.im to IMAGER_NO_CONTEXT
authorTony Cook <tony@develop-help.com>
Mon, 6 Aug 2012 01:16:57 +0000 (11:16 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 14 Aug 2012 09:58:16 +0000 (19:58 +1000)
conv.im

diff --git a/conv.im b/conv.im
index f02db85633db7824087c8b21d179218143c591d5..ced813ea75ffe500ebfcddbd4193f046cd2e36c4 100644 (file)
--- a/conv.im
+++ b/conv.im
@@ -1,3 +1,4 @@
+#define IMAGER_NO_CONTEXT
 #include "imager.h"
 #include "imageri.h"
 
@@ -19,12 +20,13 @@ i_conv(i_img *im, const double *coeff,int len) {
   double pc;
   double res[MAXCHANNELS];
   i_img *timg;
+  dIMCTXim(im);
 
-  mm_log((1,"i_conv(im %p, coeff %p, len %d)\n",im,coeff,len));
-  i_clear_error();
+  im_log((aIMCTX,1,"i_conv(im %p, coeff %p, len %d)\n",im,coeff,len));
+  im_clear_error(aIMCTX);
 
   if (len < 1) {
-    i_push_error(0, "there must be at least one coefficient");
+    im_push_error(aIMCTX, 0, "there must be at least one coefficient");
     return 0;
   }