use Ecore_Evas info on engine availability :)

SVN revision: 11708
This commit is contained in:
Carsten Haitzler 2004-09-23 21:45:50 +00:00
parent fa6db0a70e
commit a31a8fa76c
1 changed files with 14 additions and 2 deletions

View File

@ -100,21 +100,33 @@ main_start(int argc, char **argv)
{
mode = 1;
}
else if (!strcmp(argv[i], "-fb"))
{
mode = 2;
}
else if (!strcmp(argv[i], "-fill"))
{
mdfill = 1;
}
}
}
#if HAVE_ECORE_EVAS_X
if (mode == 0)
ecore_evas = ecore_evas_software_x11_new(NULL, 0, 0, 0, startw, starth);
#endif
#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);
#endif
#if HAVE_ECORE_EVAS_FB
if (mode == 2)
ecore_evas = ecore_evas_fb_new(NULL, 270, startw, starth);
#endif
#else
#if HAVE_ECORE_EVAS_FB
ecore_evas = ecore_evas_fb_new(NULL, 270, startw, starth);
#endif
#endif
if (!ecore_evas) return -1;
ecore_evas_callback_delete_request_set(ecore_evas, main_delete_request);