aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2008-12-10 15:22:48 +0000
committerN.N. <sevyves@users.sourceforge.net>2008-12-10 15:22:48 +0000
commit919d4374609514bbbbb099b9b869ac4ac50bdeed (patch)
treee98ef5e6b4059aba7d66ee77072c42fd90da439e /modules
parent0beaee04746d286e3bdc6a1846e8fd70653a3ce9 (diff)
use different fonts for multiple instances
svn path=/trunk/externals/pidip/; revision=10436
Diffstat (limited to 'modules')
-rw-r--r--modules/pdp_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pdp_text.c b/modules/pdp_text.c
index 7840e1c..e0c313b 100644
--- a/modules/pdp_text.c
+++ b/modules/pdp_text.c
@@ -384,7 +384,6 @@ static void pdp_text_font(t_pdp_text *x, t_symbol *sfont )
class_getname(*(t_pd *)x), sfont->s_name );
return;
}
- imlib_context_set_font( font );
x->x_font = font;
}
@@ -447,6 +446,7 @@ static void pdp_text_process_yv12(t_pdp_text *x)
imlib_context_set_angle( x->x_angle[ti] );
imlib_context_set_color( x->x_r[ti], x->x_g[ti], x->x_b[ti], 255 );
+ imlib_context_set_font( x->x_font );
imlib_get_text_size( x->x_text_array[ti], &text_width, &text_height);
imlib_text_draw( x->x_xoffsets[ti] - (0.5*text_width) + (cos(x->x_angle[ti]) * x->x_scroll[ti]),