summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-07-29 06:20:55 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-07-29 06:20:55 +0000
commitbf5829a614f0e2500e694cbf74e3398724d2180e (patch)
tree04fc54dae3f15e7dee23a52c7d406470c76e2180 /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
parentc99293d0e4289f1f64af018955ee6e9b1c2db856 (diff)
make sure we complain enough on stderr about enignes not being found
by ecore-evas. improved error handling, though not really a bug. SVN revision: 61878
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
index ba0fd88403..0a871558c4 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
@@ -812,12 +812,24 @@ ecore_evas_software_wince_new_internal(int backend,
812 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) 812 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
813 { 813 {
814 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver); 814 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
815 _ecore_evas_wince_shutdown();
816 free(ee);
817 ecore_wince_shutdown();
818 return NULL;
815 } 819 }
816 820
817 ecore_wince_window_backend_set((Ecore_WinCE_Window *)ee->prop.window, backend); 821 ecore_wince_window_backend_set((Ecore_WinCE_Window *)ee->prop.window, backend);
818 ecore_wince_window_suspend_cb_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.suspend); 822 ecore_wince_window_suspend_cb_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.suspend);
819 ecore_wince_window_resume_cb_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.resume); 823 ecore_wince_window_resume_cb_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.resume);
820 } 824 }
825 else
826 {
827 ERR("evas_engine_info_set() init engine '%s' failed.", ee->driver);
828 _ecore_evas_wince_shutdown();
829 free(ee);
830 ecore_wince_shutdown();
831 return NULL;
832 }
821 833
822 ee->engine.func->fn_render = _ecore_evas_wince_render; 834 ee->engine.func->fn_render = _ecore_evas_wince_render;
823 _ecore_evas_register(ee); 835 _ecore_evas_register(ee);