Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        ecompmgr.c 


Log Message:
Remove some unnecessary casts.

===================================================================
RCS file: /cvs/e/e16/e/src/ecompmgr.c,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -3 -r1.142 -r1.143
--- ecompmgr.c  7 Apr 2007 13:19:30 -0000       1.142
+++ ecompmgr.c  7 Apr 2007 14:24:29 -0000       1.143
@@ -1882,8 +1882,8 @@
                  if (!eo_first)
                     eo_first = eo1;
                  if (eo_prev)
-                    ((ECmWinInfo *) (eo_prev->cmhook))->next = eo1;
-                 ((ECmWinInfo *) (eo1->cmhook))->prev = eo_prev;
+                    eo_prev->cmhook->next = eo1;
+                 eo1->cmhook->prev = eo_prev;
                  eo_prev = eo2;
               }
 
@@ -1925,7 +1925,7 @@
           eo_first = eo;
        cw->prev = eo_prev;
        if (eo_prev)
-          ((ECmWinInfo *) (eo_prev->cmhook))->next = eo;
+          eo_prev->cmhook->next = eo;
        eo_prev = eo;
 
        switch (cw->mode)
@@ -1959,7 +1959,7 @@
 #endif
      }
    if (eo_prev)
-      ((ECmWinInfo *) (eo_prev->cmhook))->next = NULL;
+      eo_prev->cmhook->next = NULL;
 
    *first = eo_first;
    *last = eo_prev;
@@ -2174,8 +2174,7 @@
                             &Mode_compmgr.eo_last, dsk, None);
 
    /* Paint opaque windows top down */
-   for (eo = Mode_compmgr.eo_first; eo;
-       eo = ((ECmWinInfo *) (eo->cmhook))->next)
+   for (eo = Mode_compmgr.eo_first; eo; eo = eo->cmhook->next)
       ECompMgrRepaintObj(pbuf, allDamage, eo, 0);
 
 #if 0                          /* FIXME - NoBg? */
@@ -2185,7 +2184,7 @@
       ERegionShow("after opaque", region);
 
    /* Repaint background, clipped by damage region and opaque windows */
-   pict = ((ECmWinInfo *) (dsk->o.cmhook))->picture;
+   pict = dsk->o.cmhook->picture;
    D1printf("ECompMgrRepaint desk picture=%#lx\n", pict);
    XFixesSetPictureClipRegion(dpy, pbuf, 0, 0, region);
    XRenderComposite(dpy, PictOpSrc, pict, None, pbuf,
@@ -2193,7 +2192,7 @@
 #endif
 
    /* Paint trans windows and shadows bottom up */
-   for (eo = Mode_compmgr.eo_last; eo; eo = ((ECmWinInfo *) 
(eo->cmhook))->prev)
+   for (eo = Mode_compmgr.eo_last; eo; eo = eo->cmhook->prev)
       ECompMgrRepaintObj(pbuf, allDamage, eo, 1);
 
    /* Paint any ghost windows (adjusting damage region) */



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to