forked from enlightenment/efl
Add auto discovery for ecore_evas_sdl_16
SVN revision: 35954
This commit is contained in:
parent
be3676ef9a
commit
3a15a282fc
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue