aboutsummaryrefslogtreecommitdiff
path: root/modules/pdp_text.c
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2003-09-17 20:10:29 +0000
committerN.N. <sevyves@users.sourceforge.net>2003-09-17 20:10:29 +0000
commit5b9132d68a789f127c3ae19a92ef4e4b38955f73 (patch)
tree731a932f3e8a261e0ca27c6705446d73c15b5a22 /modules/pdp_text.c
parentd45a65e66ed9fd7f90ab621e00efe07989a7fa0b (diff)
Updated for PiDiP 0.12.6
svn path=/trunk/externals/pidip/; revision=994
Diffstat (limited to 'modules/pdp_text.c')
-rw-r--r--modules/pdp_text.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/pdp_text.c b/modules/pdp_text.c
index 81bd83f..41ddf6c 100644
--- a/modules/pdp_text.c
+++ b/modules/pdp_text.c
@@ -387,7 +387,7 @@ static void pdp_text_allocate(t_pdp_text *x)
static void pdp_text_free_ressources(t_pdp_text *x)
{
- if ( x->x_image != NULL ) imlib_free_image();
+ // if ( x->x_image != NULL ) imlib_free_image();
}
static void pdp_text_process_yv12(t_pdp_text *x)
@@ -421,6 +421,7 @@ static void pdp_text_process_yv12(t_pdp_text *x)
memcpy( newdata, data, (x->x_vsize+(x->x_vsize>>1))<<1 );
// draw all texts
+ if ( x->x_image != NULL ) imlib_context_set_image(x->x_image);
imlib_image_clear();
imlib_context_set_direction(IMLIB_TEXT_TO_ANGLE);
imdata = imlib_image_get_data();
@@ -593,7 +594,7 @@ void pdp_text_setup(void)
{
Imlib_Font font;
- post( pdp_text_version );
+ // post( pdp_text_version );
pdp_text_class = class_new(gensym("pdp_text"), (t_newmethod)pdp_text_new,
(t_method)pdp_text_free, sizeof(t_pdp_text), 0, A_NULL);
@@ -615,6 +616,7 @@ void pdp_text_setup(void)
class_addmethod(pdp_text_class, (t_method)pdp_text_dither, gensym("dither"), A_DEFFLOAT, A_NULL);
class_addmethod(pdp_text_class, (t_method)pdp_text_blend, gensym("blend"), A_DEFFLOAT, A_NULL);
class_addmethod(pdp_text_class, (t_method)pdp_text_antialias, gensym("antialias"), A_DEFFLOAT, A_NULL);
+ class_sethelpsymbol( pdp_text_class, gensym("pdp_text.pd") );
imlib_add_path_to_font_path("/usr/X11R6/lib/X11/fonts/TTF");
font = imlib_load_font(DEFAULT_FONT);