Enlightenment CVS committal Author : ravenlock Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_randr.c Log Message: If ecore detects and is build with xrandr support, yet any given display does not actually support it... we need a test. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.192 retrieving revision 1.193 diff -u -3 -r1.192 -r1.193 --- Ecore_X.h 15 Nov 2007 04:48:36 -0000 1.192 +++ Ecore_X.h 27 Dec 2007 06:34:38 -0000 1.193 @@ -1579,6 +1579,7 @@ int rate; }; +EAPI int ecore_x_randr_present(); EAPI int ecore_x_randr_events_select(Ecore_X_Window win, int on); EAPI void ecore_x_randr_get_screen_info_prefetch(Ecore_X_Window window); EAPI void ecore_x_randr_get_screen_info_fetch(void); =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_randr.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ecore_x_randr.c 12 May 2006 12:28:06 -0000 1.11 +++ ecore_x_randr.c 27 Dec 2007 06:34:38 -0000 1.12 @@ -1,7 +1,24 @@ /* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ + #include "ecore_x_private.h" + +EAPI int +ecore_x_randr_present() +{ +#ifdef ECORE_XRANDR + int randr_base = 0; + int randr_err_base = 0; + + if (XRRQueryExtension(_ecore_x_disp, &randr_base, &randr_err_base)) + return 1; + else + return 0; +#else + return 0; +#endif +} EAPI int ecore_x_randr_events_select(Ecore_X_Window win, int on) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs