changeset 1413:b8dfa491ed9d

Use app.refresh() instead of redraw_changed()
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 06 Apr 2011 11:14:15 +0800
parents 3e80b5cf8da2
children 036f2b447860
files nodejs/examples/simple/test-translate.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/examples/simple/test-translate.js	Wed Apr 06 10:44:15 2011 +0800
+++ b/nodejs/examples/simple/test-translate.js	Wed Apr 06 11:14:15 2011 +0800
@@ -13,13 +13,12 @@
 paint = app.mb_rt.paint_image_new(data);
 img = app.mb_rt.image_new(10,10,50,50);
 paint.fill(img);
-coord.opacity = 0.9;
 coord.add_shape(img);
 
 var shift = 0;
 function translate_handler() {
     coord_parent[2] = shift;
-    app.mb_rt.redraw_changed();
+    app.refresh();
     setTimeout(translate_handler, 100);
     shift = shift + 10;
 }