aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-10 16:06:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-12-10 16:10:46 +0900
commitb51e2674472dc132d1f63814704955adb4339558 (patch)
tree1ab63e93afb85e7e62270b2f7f8fa7d804182af7 /legacy/elementary/src/lib/elm_win.c
parentElm entry: fix null item in item provider. (diff)
downloadefl-b51e2674472dc132d1f63814704955adb4339558.tar.gz
Fix compilation on Windows (and propably also on Mac)
Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3419
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 1f982c8111..b9fb0cf294 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -2197,11 +2197,9 @@ _elm_ee_cocoa_win_get(const Ecore_Evas *ee)
engine_name = ecore_evas_engine_name_get(ee);
if (EINA_UNLIKELY(!engine_name)) return NULL;
- if ((!strcmp(engine_name, ELM_SOFTWARE_WIN32)) ||
- (!strcmp(engine_name, ELM_SOFTWARE_DDRAW)))
- {
- return ecore_evas_win32_window_get(ee);
- }
+ if (!strcmp(engine_name, "opengl_cocoa") ||
+ !strcmp(engine_name, "gl_cocoa"))
+ return ecore_evas_cocoa_window_get(ee);
#else
(void)ee;
#endif
@@ -2219,9 +2217,11 @@ _elm_ee_win32win_get(const Ecore_Evas *ee)
engine_name = ecore_evas_engine_name_get(ee);
if (EINA_UNLIKELY(!engine_name)) return NULL;
- if (!strcmp(engine_name, "opengl_cocoa") ||
- !strcmp(engine_name, "gl_cocoa"))
- return ecore_evas_cocoa_window_get(ee);
+ if ((!strcmp(engine_name, ELM_SOFTWARE_WIN32)) ||
+ (!strcmp(engine_name, ELM_SOFTWARE_DDRAW)))
+ {
+ return ecore_evas_win32_window_get(ee);
+ }
#else
(void)ee;
#endif