changeset 347:b247beaac4f0

Don't call sh_image_transform() in filebrowser.c:mypreview(). - sh_image_transform() will be called by redraw manager automatically. Applications invoke it would get abnormal result when updating image.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 08 Mar 2009 21:57:15 +0800
parents b391722bf20e
children 04d22dc38bc0
files examples/menu/filebrowser.c
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/examples/menu/filebrowser.c	Sun Mar 08 14:44:41 2009 +0800
+++ b/examples/menu/filebrowser.c	Sun Mar 08 21:57:15 2009 +0800
@@ -76,7 +76,6 @@
     if (img) {
 	    printf("image %d %d\n",img->w,img->h);
 	    sh_image_set_img_data(obj,img,0,0,img->w,img->h);
-	    sh_image_transform(obj);
 	    rdman_shape_changed(MBAPP_RDMAN(myApp),obj);
             rdman_redraw_changed(MBAPP_RDMAN(myApp));
     }