Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x_randr.c 


Log Message:



#ifdef the randr support

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_randr.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ecore_x_randr.c     12 May 2006 07:24:34 -0000      1.10
+++ ecore_x_randr.c     12 May 2006 12:28:06 -0000      1.11
@@ -21,24 +21,33 @@
 EAPI Ecore_X_Randr_Rotation
 ecore_x_randr_screen_rotations_get(Ecore_X_Window root)
 {
+#ifdef ECORE_XRANDR
    Rotation rot, crot;
    
    rot = XRRRotations(_ecore_x_disp, XRRRootToScreen(_ecore_x_disp, root), 
&crot);
    return rot;
+#else
+   return 0;
+#endif   
 }
 
 EAPI Ecore_X_Randr_Rotation
 ecore_x_randr_screen_rotation_get(Ecore_X_Window root)
 {
+#ifdef ECORE_XRANDR
    Rotation rot, crot = 0;
    
    rot = XRRRotations(_ecore_x_disp, XRRRootToScreen(_ecore_x_disp, root), 
&crot);
    return crot;
+#else
+   return 0;
+#endif   
 }
 
 EAPI void
 ecore_x_randr_screen_rotation_set(Ecore_X_Window root, Ecore_X_Randr_Rotation 
rot)
 {
+#ifdef ECORE_XRANDR
    XRRScreenConfiguration *xrrcfg;
    SizeID sizeid;
    Rotation crot;
@@ -48,6 +57,7 @@
    sizeid = XRRConfigCurrentConfiguration(xrrcfg, &crot);
    XRRSetScreenConfig(_ecore_x_disp, xrrcfg, root, sizeid, rot, CurrentTime);
    XRRFreeScreenConfigInfo(xrrcfg);
+#endif   
 }
 
 EAPI Ecore_X_Screen_Size *




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to