Add auto discovery for ecore_evas_sdl_16

SVN revision: 35954
This commit is contained in:
Cedric BAIL 2008-09-11 14:47:09 +00:00
parent be3676ef9a
commit 3a15a282fc
1 changed files with 19 additions and 0 deletions

View File

@ -333,6 +333,24 @@ _ecore_evas_constructor_sdl(int x, int y, int w, int h, const char *extra_option
return ee;
}
static Ecore_Evas *
_ecore_evas_constructor_sdl16(int x, int y, int w, int h, const char *extra_options)
{
Ecore_Evas *ee;
unsigned int fullscreen = 0, hwsurface = 0, noframe = 0, alpha = 0;
char *name = NULL;
_ecore_evas_parse_extra_options_str(extra_options, "name=", &name);
_ecore_evas_parse_extra_options_uint(extra_options, "fullscreen=", &fullscreen);
_ecore_evas_parse_extra_options_uint(extra_options, "hwsurface=", &hwsurface);
_ecore_evas_parse_extra_options_uint(extra_options, "alpha=", &alpha);
ee = ecore_evas_sdl16_new(name, w, h, fullscreen, hwsurface, noframe, alpha);
free(name);
return ee;
}
#endif
#ifdef BUILD_ECORE_EVAS_DIRECTFB
@ -454,6 +472,7 @@ static const struct ecore_evas_engine _engines[] = {
#endif
#ifdef BUILD_ECORE_EVAS_SDL
{"sdl", _ecore_evas_constructor_sdl},
{"software_16_sdl", _ecore_evas_constructor_sdl16},
#endif
#ifdef BUILD_ECORE_EVAS_DIRECTFB
{"directfb", _ecore_evas_constructor_directfb},