From 5b9132d68a789f127c3ae19a92ef4e4b38955f73 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 17 Sep 2003 20:10:29 +0000 Subject: Updated for PiDiP 0.12.6 svn path=/trunk/externals/pidip/; revision=994 --- modules/pdp_imgsaver.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'modules/pdp_imgsaver.c') diff --git a/modules/pdp_imgsaver.c b/modules/pdp_imgsaver.c index 5f11098..6e261a0 100644 --- a/modules/pdp_imgsaver.c +++ b/modules/pdp_imgsaver.c @@ -122,11 +122,11 @@ static void *pdp_imgsaver_do_save(void *tdata) post( "pdp_imgsaver : saved to : %s", x->x_filename->s_name ); } - if ( x->x_image != NULL ) - { - imlib_free_image(); - x->x_image = NULL; - } + //if ( x->x_image != NULL ) + //{ + // imlib_free_image(); + //} + x->x_image = NULL; x->x_save_pending = 0; x->x_filename = NULL; @@ -150,11 +150,11 @@ static void pdp_imgsaver_save(t_pdp_imgsaver *x, t_symbol *filename) } x->x_save_pending = 1; x->x_filename = filename; - if ( x->x_image != NULL ) - { - imlib_free_image(); - x->x_image = NULL; - } + //if ( x->x_image != NULL ) + //{ + // imlib_free_image(); + //} + x->x_image = NULL; // launch saving thread if ( pthread_attr_init( &save_child_attr ) < 0 ) @@ -325,13 +325,14 @@ extern "C" void pdp_imgsaver_setup(void) { - post( pdp_imgsaver_version ); + // post( pdp_imgsaver_version ); pdp_imgsaver_class = class_new(gensym("pdp_imgsaver"), (t_newmethod)pdp_imgsaver_new, (t_method)pdp_imgsaver_free, sizeof(t_pdp_imgsaver), 0, A_NULL); class_addmethod(pdp_imgsaver_class, (t_method)pdp_imgsaver_input_0, gensym("pdp"), A_SYMBOL, A_DEFFLOAT, A_NULL); class_addmethod(pdp_imgsaver_class, (t_method)pdp_imgsaver_save, gensym("save"), A_SYMBOL, A_NULL); + class_sethelpsymbol( pdp_imgsaver_class, gensym("pdp_imgsaver.pd") ); } -- cgit v1.2.1