use Ecore_Evas info on engine availability :)
SVN revision: 11708
This commit is contained in:
parent
fa6db0a70e
commit
a31a8fa76c
|
@ -100,21 +100,33 @@ main_start(int argc, char **argv)
|
||||||
{
|
{
|
||||||
mode = 1;
|
mode = 1;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(argv[i], "-fb"))
|
||||||
|
{
|
||||||
|
mode = 2;
|
||||||
|
}
|
||||||
else if (!strcmp(argv[i], "-fill"))
|
else if (!strcmp(argv[i], "-fill"))
|
||||||
{
|
{
|
||||||
mdfill = 1;
|
mdfill = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if HAVE_ECORE_EVAS_X
|
||||||
if (mode == 0)
|
if (mode == 0)
|
||||||
ecore_evas = ecore_evas_software_x11_new(NULL, 0, 0, 0, startw, starth);
|
ecore_evas = ecore_evas_software_x11_new(NULL, 0, 0, 0, startw, starth);
|
||||||
|
#endif
|
||||||
#if HAVE_ECORE_EVAS_GL
|
#if HAVE_ECORE_EVAS_GL
|
||||||
else if (mode == 1)
|
if (mode == 1)
|
||||||
ecore_evas = ecore_evas_gl_x11_new(NULL, 0, 0, 0, startw, starth);
|
ecore_evas = ecore_evas_gl_x11_new(NULL, 0, 0, 0, startw, starth);
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_ECORE_EVAS_FB
|
||||||
|
if (mode == 2)
|
||||||
|
ecore_evas = ecore_evas_fb_new(NULL, 270, startw, starth);
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#if HAVE_ECORE_EVAS_FB
|
||||||
ecore_evas = ecore_evas_fb_new(NULL, 270, startw, starth);
|
ecore_evas = ecore_evas_fb_new(NULL, 270, startw, starth);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if (!ecore_evas) return -1;
|
if (!ecore_evas) return -1;
|
||||||
ecore_evas_callback_delete_request_set(ecore_evas, main_delete_request);
|
ecore_evas_callback_delete_request_set(ecore_evas, main_delete_request);
|
||||||
|
|
Loading…
Reference in New Issue