diff examples/calculator/main.c @ 278:a90fd749af82 mbtext

Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
author wycc
date Sat, 31 Jan 2009 09:41:04 +0800
parents 54fdc2a65242
children c8b6ca46950b
line wrap: on
line diff
--- a/examples/calculator/main.c	Sun Jan 04 12:01:41 2009 +0800
+++ b/examples/calculator/main.c	Sat Jan 31 09:41:04 2009 +0800
@@ -66,8 +66,8 @@
     rdman = X_MB_rdman(calc_data->rt);
 
     sprintf(buf, "%d%s", num, suffix);
-    sh_text_set_text(calc_data->code->screen_text, buf);
-    rdman_shape_changed(rdman, calc_data->code->screen_text);
+    sh_text_set_text(calc_data->code->screen_text_u, buf);
+    rdman_shape_changed(rdman, calc_data->code->screen_text_u);
 
     if(op == 'n')
 	sprintf(buf, "None");