Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/dropshadow


Modified Files:
        e_mod_main.c 


Log Message:


fix evas object warnings - and fix dropwshadow bug

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e/src/modules/dropshadow/e_mod_main.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- e_mod_main.c        25 Apr 2005 02:59:25 -0000      1.21
+++ e_mod_main.c        6 May 2005 06:22:22 -0000       1.22
@@ -915,6 +915,10 @@
             evas_object_resize(sh->object[3], sh->w + (sh->ds->conf->blur_size 
* 2), sh->ds->conf->blur_size + sh->ds->conf->shadow_y);
             evas_object_image_fill_set(sh->object[3], 0, 0, sh->w + 
(sh->ds->conf->blur_size * 2), sh->ds->conf->blur_size + 
sh->ds->conf->shadow_y);
          }
+       else
+         {
+            sh->reshape = 1;
+         }
      }
    else
      {
@@ -1158,32 +1162,6 @@
                       _ds_shpix_object_set(sp, so->obj, 
                                            r->x, r->y, r->w, r->h);
                    }
-#if 0            
-            _ds_shpix_object_set(sp, sh->object[0], 0, 0,
-                                 (shw + (bsz * 2)) / q, (shh + (bsz * 2)) / q);
-            evas_object_move(sh->object[0],
-                             sh->x + shx - bsz,
-                             sh->y + shy - bsz);
-            evas_object_image_smooth_scale_set(sh->object[0], 1);
-            evas_object_image_border_set(sh->object[0],
-                                         0, 0, 0, 0);
-            evas_object_resize(sh->object[0],
-                               sh->w + (bsz * 2),
-                               sh->h + (bsz * 2));
-            evas_object_image_fill_set(sh->object[0], 0, 0, 
-                                       sh->w + (bsz * 2),
-                                       sh->h + (bsz * 2));
-            _ds_object_unset(sh->object[1]);
-            _ds_object_unset(sh->object[2]);
-            _ds_object_unset(sh->object[3]);
-            
-            if (evas_object_visible_get(sh->object[0]))
-              {
-                 evas_object_hide(sh->object[1]);
-                 evas_object_hide(sh->object[2]);
-                 evas_object_hide(sh->object[3]);
-              }
-#endif
                  _ds_shpix_free(sp);
                  
                  _tilebuf_free_render_rects(brects);
@@ -1212,6 +1190,8 @@
          }
        else
          {
+            _ds_shadow_obj_shutdown(sh);
+            _ds_shadow_obj_init(sh);
             _ds_shared_use(sh->ds, sh);
             sh->use_shared = 1;
          }
@@ -1310,8 +1290,9 @@
               }
          }
        
-       if (evas_object_visible_get(sh->object[0]))
+       if (sh->visible)
          {
+            evas_object_show(sh->object[0]);
             evas_object_show(sh->object[1]);
             evas_object_show(sh->object[2]);
             evas_object_show(sh->object[3]);




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to