and we were missing vsync set support in ecore-evas, but had indirect

support. fix.



SVN revision: 55755
This commit is contained in:
Carsten Haitzler 2010-12-26 10:17:31 +00:00
parent efc042f2e7
commit 1046621d6a
2 changed files with 7 additions and 1 deletions

View File

@ -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);

View File

@ -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];
}
}
}