diff examples/dynamic/text.c @ 289:13ce87b6dbf5

Fix bug of sh_text_t that do not update it-self after changes. - It is wrong to compute bounding box. - location of left-top corner is (text->d_x, text->d_y) not (text->x, text->y).
author Thinker K.F. Li <thinker@branda.to>
date Sat, 31 Jan 2009 18:28:50 +0800
parents 22d771e1b710
children 137a73822d48
line wrap: on
line diff
--- a/examples/dynamic/text.c	Sat Jan 31 17:35:27 2009 +0800
+++ b/examples/dynamic/text.c	Sat Jan 31 18:28:50 2009 +0800
@@ -42,7 +42,12 @@
         sh_text_set_text(text,"This is 1");
     }
     rdman_shape_changed(MBAPP_RDMAN(myApp), text);
+#if 0
+    /* Removed!
+     * X_MB_handle_connection() will invoke it automatically.
+     */
     rdman_redraw_changed(MBAPP_RDMAN(myApp));
+#endif
 }
 
 int main(int argc, char * const argv[]) {