Enlightenment CVS committal

Author  : kwo
Project : e17
Module  : libs/esmart

Dir     : e17/libs/esmart/src/lib/esmart_trans_x11


Modified Files:
        esmart_trans_x11.c 


Log Message:
Fix warnings, remove unnecessary casts.

===================================================================
RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_trans_x11/esmart_trans_x11.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- esmart_trans_x11.c  6 Sep 2006 07:17:49 -0000       1.7
+++ esmart_trans_x11.c  26 Aug 2007 13:44:56 -0000      1.8
@@ -177,16 +177,15 @@
       if (ret && (p = *((Ecore_X_Pixmap *) data)))
       {
          Imlib_Image    im;
-         unsigned int   pw, ph;
-         int            px, py;
+         int            px, py, pw, ph;
             
          ecore_x_pixmap_geometry_get(p, &px, &py, &pw, &ph);
          if (pw && ph) {
             imlib_context_set_drawable(*((Ecore_X_Pixmap *) data));
 
             /* Check if the object will fit within the pixmap's boundaries */
-            if ((x >= px) && (y >= py) && ((x + w) <= (px + ((signed int) 
pw))) 
-                  && ((y + h) <= (py + ((signed int) ph))))
+            if ((x >= px) && (y >= py) && ((x + w) <= (px + pw))
+                  && ((y + h) <= (py + ph)))
             {
                im = imlib_create_image_from_drawable(0, x, y, w, h, 1);
                imlib_context_set_image(im);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to