Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_display.c 


Log Message:


debug for rotation stupport

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_display.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_int_config_display.c      10 May 2006 14:54:59 -0000      1.9
+++ e_int_config_display.c      12 May 2006 12:29:44 -0000      1.10
@@ -291,6 +291,7 @@
    E_Manager *man;
    Ecore_X_Screen_Size *sizes;
    Ecore_X_Screen_Size size;
+   Ecore_X_Randr_Rotation rots, rot;
    int i, r, s;
    
    _fill_data(cfdata);
@@ -391,6 +392,26 @@
    
    e_widget_ilist_go(ol);
    e_widget_ilist_go(rl);
+   
+   rots = ecore_x_randr_screen_rotations_get(man->root);
+   rot = ecore_x_randr_screen_rotation_get(man->root);
+   if (!rots)
+     {
+       printf("no randr support\n");
+     }
+   if (rot & ECORE_X_RANDR_ROT_0) printf("rot: 0deg\n");
+   if (rot & ECORE_X_RANDR_ROT_90) printf("rot: 90deg\n");
+   if (rot & ECORE_X_RANDR_ROT_180) printf("rot: 180deg\n");
+   if (rot & ECORE_X_RANDR_ROT_270) printf("rot: 270deg\n");
+   if (rot & ECORE_X_RANDR_FLIP_X) printf("rot: flip x\n");
+   if (rot & ECORE_X_RANDR_FLIP_Y) printf("rot: flip y\n");
+   printf("---\n", rot);
+   if (rots & ECORE_X_RANDR_ROT_0) printf("support: 0deg\n");
+   if (rots & ECORE_X_RANDR_ROT_90) printf("support: 90deg\n");
+   if (rots & ECORE_X_RANDR_ROT_180) printf("support: 180deg\n");
+   if (rots & ECORE_X_RANDR_ROT_270) printf("support: 270deg\n");
+   if (rots & ECORE_X_RANDR_FLIP_X) printf("support: flip x\n");
+   if (rots & ECORE_X_RANDR_FLIP_Y) printf("support: flip y\n");
    return o;
 }
 




-------------------------------------------------------
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