forked from enlightenment/efl
and we were missing vsync set support in ecore-evas, but had indirect
support. fix. SVN revision: 55755
This commit is contained in:
parent
efc042f2e7
commit
1046621d6a
|
@ -150,7 +150,8 @@ EAPI void ecore_evas_software_x11_extra_event_window_add(Ecore_Evas *
|
|||
|
||||
#define ECORE_EVAS_GL_X11_OPT_NONE 0
|
||||
#define ECORE_EVAS_GL_X11_OPT_INDIRECT 1
|
||||
#define ECORE_EVAS_GL_X11_OPT_LAST 2
|
||||
#define ECORE_EVAS_GL_X11_OPT_VSYNC 2
|
||||
#define ECORE_EVAS_GL_X11_OPT_LAST 3
|
||||
|
||||
EAPI Ecore_Evas *ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
|
||||
EAPI Ecore_Evas *ecore_evas_gl_x11_options_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h, const int *opt);
|
||||
|
|
|
@ -163,6 +163,11 @@ _ecore_evas_x_gl_window_new(Ecore_Evas *ee, Ecore_X_Window parent, int x, int y,
|
|||
op++;
|
||||
einfo->indirect = opt[op];
|
||||
}
|
||||
else if (opt[op] == ECORE_EVAS_GL_X11_OPT_VSYNC)
|
||||
{
|
||||
op++;
|
||||
einfo->vsync = opt[op];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue