forked from enlightenment/efl
If ecore detects and is build with xrandr support, yet any given display does not actually support it... we need a test.
SVN revision: 33260
This commit is contained in:
parent
8a05a8d250
commit
bedfcfc24c
|
@ -1579,6 +1579,7 @@ struct _Ecore_X_Screen_Refresh_Rate
|
|||
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);
|
||||
|
|
|
@ -1,8 +1,25 @@
|
|||
/*
|
||||
* 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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue