summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/sdl
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-01-11 18:19:43 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-01-11 18:19:43 +0900
commitf111c8da6dc32686ca1fe787208206fa95013ee4 (patch)
treef6831073ec2f9ba22f5f6e05dbff8d4082c9260b /src/modules/ecore_evas/engines/sdl
parenta565fd391bbc072912beb3aeec929c98ca032817 (diff)
ecore - clean up code.
fix indentation and use Eina_Bool instead of char.
Diffstat (limited to 'src/modules/ecore_evas/engines/sdl')
-rw-r--r--src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
index 88808e9021..8b443366dc 100644
--- a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
+++ b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
@@ -60,7 +60,7 @@ _ecore_evas_sdl_event_got_focus(void *data EINA_UNUSED, int type EINA_UNUSED, vo
60 60
61 if (!ee) return ECORE_CALLBACK_PASS_ON; 61 if (!ee) return ECORE_CALLBACK_PASS_ON;
62 /* pass on event */ 62 /* pass on event */
63 ee->prop.focused = 1; 63 ee->prop.focused = EINA_TRUE;
64 evas_focus_in(ee->evas); 64 evas_focus_in(ee->evas);
65 if (ee->func.fn_focus_in) ee->func.fn_focus_in(ee); 65 if (ee->func.fn_focus_in) ee->func.fn_focus_in(ee);
66 return ECORE_CALLBACK_PASS_ON; 66 return ECORE_CALLBACK_PASS_ON;
@@ -75,7 +75,7 @@ _ecore_evas_sdl_event_lost_focus(void *data EINA_UNUSED, int type EINA_UNUSED, v
75 75
76 if (!ee) return ECORE_CALLBACK_PASS_ON; 76 if (!ee) return ECORE_CALLBACK_PASS_ON;
77 /* pass on event */ 77 /* pass on event */
78 ee->prop.focused = 0; 78 ee->prop.focused = EINA_FALSE;
79 evas_focus_out(ee->evas); 79 evas_focus_out(ee->evas);
80 if (ee->func.fn_focus_out) ee->func.fn_focus_out(ee); 80 if (ee->func.fn_focus_out) ee->func.fn_focus_out(ee);
81 return ECORE_CALLBACK_PASS_ON; 81 return ECORE_CALLBACK_PASS_ON;
@@ -340,7 +340,7 @@ static void
340_ecore_evas_show(Ecore_Evas *ee) 340_ecore_evas_show(Ecore_Evas *ee)
341{ 341{
342 if (ee->prop.focused) return; 342 if (ee->prop.focused) return;
343 ee->prop.focused = 1; 343 ee->prop.focused = EINA_TRUE;
344 evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL); 344 evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL);
345} 345}
346 346
@@ -479,7 +479,7 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu
479 ee->prop.max.w = 0; 479 ee->prop.max.w = 0;
480 ee->prop.max.h = 0; 480 ee->prop.max.h = 0;
481 ee->prop.layer = 0; 481 ee->prop.layer = 0;
482 ee->prop.focused = 1; 482 ee->prop.focused = EINA_TRUE;
483 ee->prop.borderless = 1; 483 ee->prop.borderless = 1;
484 ee->prop.override = 1; 484 ee->prop.override = 1;
485 ee->prop.maximized = 1; 485 ee->prop.maximized = 1;