summaryrefslogtreecommitdiff
path: root/src/bin/e_init_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2007-09-24 10:53:44 +0000
committerCarsten Haitzler <raster@rasterman.com>2007-09-24 10:53:44 +0000
commit1e507658f3ca645bb9a3728f9260604e9737771a (patch)
treee03cc5c7d9159e85ed1bfdfa4df715d29533f0f6 /src/bin/e_init_main.c
parenta6825b262b157f647cf1f8872fd074440c5dd620 (diff)
downloadenlightenment-1e507658f3ca645bb9a3728f9260604e9737771a.tar.gz
and make the init splash use the right engine!
SVN revision: 31796
Diffstat (limited to 'src/bin/e_init_main.c')
-rw-r--r--src/bin/e_init_main.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/bin/e_init_main.c b/src/bin/e_init_main.c
index 2b083b3905..9ad35ecc4d 100644
--- a/src/bin/e_init_main.c
+++ b/src/bin/e_init_main.c
@@ -48,6 +48,13 @@ static Ecore_X_Window *initwins = NULL;
static int initwins_num = 0;
static Ecore_Ipc_Server *server = NULL;
+static int
+delayed_ok(void *data)
+{
+ kill(getppid(), SIGUSR2);
+ return 0;
+}
+
int
main(int argc, char **argv)
{
@@ -81,6 +88,7 @@ main(int argc, char **argv)
evas_init();
ecore_evas_init();
edje_init();
+ edje_frametime_set(1.0 / 60.0);
ecore_file_init();
ecore_ipc_init();
@@ -91,6 +99,7 @@ main(int argc, char **argv)
e_init_title_set(title);
e_init_version_set(verstr);
e_init_status_set("");
+ ecore_timer_add(0.2, delayed_ok, NULL);
ecore_main_loop_begin();
}
@@ -430,20 +439,13 @@ _e_init_evas_new(Ecore_X_Window root, int w, int h, Ecore_X_Window *winret)
Evas *e;
Evas_List *l;
- if (engine == 0)
+ if ((engine == 0) || (engine == 1))
{
ee = ecore_evas_software_x11_new(NULL, root, 0, 0, w, h);
ecore_evas_override_set(ee, 1);
ecore_evas_software_x11_direct_resize_set(ee, 1);
*winret = ecore_evas_software_x11_window_get(ee);
}
- else if (engine == 1)
- {
- ee = ecore_evas_xrender_x11_new(NULL, root, 0, 0, w, h);
- ecore_evas_override_set(ee, 1);
- ecore_evas_xrender_x11_direct_resize_set(ee, 1);
- *winret = ecore_evas_xrender_x11_window_get(ee);
- }
else if (engine == 2)
{
ee = ecore_evas_gl_x11_new(NULL, root, 0, 0, w, h);
@@ -451,6 +453,13 @@ _e_init_evas_new(Ecore_X_Window root, int w, int h, Ecore_X_Window *winret)
ecore_evas_gl_x11_direct_resize_set(ee, 1);
*winret = ecore_evas_gl_x11_window_get(ee);
}
+ else if (engine == 3)
+ {
+ ee = ecore_evas_xrender_x11_new(NULL, root, 0, 0, w, h);
+ ecore_evas_override_set(ee, 1);
+ ecore_evas_xrender_x11_direct_resize_set(ee, 1);
+ *winret = ecore_evas_xrender_x11_window_get(ee);
+ }
e = ecore_evas_get(ee);