comparison examples/menu/filebrowser.c @ 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
comparison
equal deleted inserted replaced
346:b391722bf20e 347:b247beaac4f0
74 74
75 printf("Preview %s\n",path); 75 printf("Preview %s\n",path);
76 if (img) { 76 if (img) {
77 printf("image %d %d\n",img->w,img->h); 77 printf("image %d %d\n",img->w,img->h);
78 sh_image_set_img_data(obj,img,0,0,img->w,img->h); 78 sh_image_set_img_data(obj,img,0,0,img->w,img->h);
79 sh_image_transform(obj);
80 rdman_shape_changed(MBAPP_RDMAN(myApp),obj); 79 rdman_shape_changed(MBAPP_RDMAN(myApp),obj);
81 rdman_redraw_changed(MBAPP_RDMAN(myApp)); 80 rdman_redraw_changed(MBAPP_RDMAN(myApp));
82 } 81 }
83 } 82 }
84 83