summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-05-18 06:33:28 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-05-18 06:33:28 +0000
commit72e17e3589c472aa3232adac72c175ddbdced172 (patch)
tree9482a65361eedc521977039ffec0bc20954ffa3f /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
parentfab9a2ca4dc0dfce4f4a6b3de594bf1ef1daddd6 (diff)
fix some warnings
SVN revision: 40719
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c60
1 files changed, 30 insertions, 30 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 2fd0c213aa..66d6a60039 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
@@ -174,9 +174,9 @@ _ecore_evas_wince_event_mouse_in(void *data __UNUSED__, int type __UNUSED__, voi
174 EINA_ERROR_PINFO("mouse in\n"); 174 EINA_ERROR_PINFO("mouse in\n");
175 175
176 e = event; 176 e = event;
177 ee = ecore_event_window_match(e->window); 177 ee = ecore_event_window_match((Ecore_Window)e->window);
178 if ((!ee) || (ee->ignore_events)) return 1; /* pass on event */ 178 if ((!ee) || (ee->ignore_events)) return 1; /* pass on event */
179 if (e->window != ee->prop.window) return 1; 179 if (e->window != (Ecore_WinCE_Window *)ee->prop.window) return 1;
180 180
181 if (ee->func.fn_mouse_in) ee->func.fn_mouse_in(ee); 181 if (ee->func.fn_mouse_in) ee->func.fn_mouse_in(ee);
182 /* FIXME to do */ 182 /* FIXME to do */
@@ -196,9 +196,9 @@ _ecore_evas_wince_event_mouse_out(void *data __UNUSED__, int type __UNUSED__, vo
196 EINA_ERROR_PINFO("mouse out\n"); 196 EINA_ERROR_PINFO("mouse out\n");
197 197
198 e = event; 198 e = event;
199 ee = ecore_event_window_match(e->window); 199 ee = ecore_event_window_match((Ecore_Window)e->window);
200 if ((!ee) || (ee->ignore_events)) return 1; /* pass on event */ 200 if ((!ee) || (ee->ignore_events)) return 1; /* pass on event */
201 if (e->window != ee->prop.window) return 1; 201 if (e->window != (Ecore_WinCE_Window *)ee->prop.window) return 1;
202 202
203 /* FIXME to do */ 203 /* FIXME to do */
204/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */ 204/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */
@@ -220,9 +220,9 @@ _ecore_evas_wince_event_window_damage(void *data __UNUSED__, int type __UNUSED__
220 EINA_ERROR_PINFO("window damage\n"); 220 EINA_ERROR_PINFO("window damage\n");
221 221
222 e = event; 222 e = event;
223 ee = ecore_event_window_match(e->window); 223 ee = ecore_event_window_match((Ecore_Window)e->window);
224 if (!ee) return 1; /* pass on event */ 224 if (!ee) return 1; /* pass on event */
225 if (e->window != ee->prop.window) return 1; 225 if (e->window != (Ecore_WinCE_Window *)ee->prop.window) return 1;
226 226
227 if (ee->prop.avoid_damage) 227 if (ee->prop.avoid_damage)
228 { 228 {
@@ -268,9 +268,9 @@ _ecore_evas_wince_event_window_destroy(void *data __UNUSED__, int type __UNUSED_
268 EINA_ERROR_PINFO("window destroy\n"); 268 EINA_ERROR_PINFO("window destroy\n");
269 269
270 e = event; 270 e = event;
271 ee = ecore_event_window_match(e->window); 271 ee = ecore_event_window_match((Ecore_Window)e->window);
272 if (!ee) return 1; /* pass on event */ 272 if (!ee) return 1; /* pass on event */
273 if (e->window != ee->prop.window) return 1; 273 if (e->window != (Ecore_WinCE_Window *)ee->prop.window) return 1;
274 if (ee->func.fn_destroy) ee->func.fn_destroy(ee); 274 if (ee->func.fn_destroy) ee->func.fn_destroy(ee);
275 ecore_evas_free(ee); 275 ecore_evas_free(ee);
276 276
@@ -286,9 +286,9 @@ _ecore_evas_wince_event_window_show(void *data __UNUSED__, int type __UNUSED__,
286 EINA_ERROR_PINFO("window show\n"); 286 EINA_ERROR_PINFO("window show\n");
287 287
288 e = event; 288 e = event;
289 ee = ecore_event_window_match(e->window); 289 ee = ecore_event_window_match((Ecore_Window)e->window);
290 if (!ee) return 1; /* pass on event */ 290 if (!ee) return 1; /* pass on event */
291 if (e->window != ee->prop.window) return 1; 291 if (e->window != (Ecore_WinCE_Window *)ee->prop.window) return 1;
292 if (ee->visible) return 0; /* dont pass it on */ 292 if (ee->visible) return 0; /* dont pass it on */
293 ee->visible = 1; 293 ee->visible = 1;
294 if (ee->func.fn_show) ee->func.fn_show(ee); 294 if (ee->func.fn_show) ee->func.fn_show(ee);
@@ -305,9 +305,9 @@ _ecore_evas_wince_event_window_hide(void *data __UNUSED__, int type __UNUSED__,
305 EINA_ERROR_PINFO("window hide\n"); 305 EINA_ERROR_PINFO("window hide\n");
306 306
307 e = event; 307 e = event;
308 ee = ecore_event_window_match(e->window); 308 ee = ecore_event_window_match((Ecore_Window)e->window);
309 if (!ee) return 1; /* pass on event */ 309 if (!ee) return 1; /* pass on event */
310 if (e->window != ee->prop.window) return 1; 310 if (e->window != (Ecore_WinCE_Window *)ee->prop.window) return 1;
311 if (!ee->visible) return 0; /* dont pass it on */ 311 if (!ee->visible) return 0; /* dont pass it on */
312 ee->visible = 0; 312 ee->visible = 0;
313 if (ee->func.fn_hide) ee->func.fn_hide(ee); 313 if (ee->func.fn_hide) ee->func.fn_hide(ee);
@@ -324,9 +324,9 @@ _ecore_evas_wince_event_window_delete_request(void *data __UNUSED__, int type __
324 EINA_ERROR_PINFO("window delete request\n"); 324 EINA_ERROR_PINFO("window delete request\n");
325 325
326 e = event; 326 e = event;
327 ee = ecore_event_window_match(e->window); 327 ee = ecore_event_window_match((Ecore_Window)e->window);
328 if (!ee) return 1; /* pass on event */ 328 if (!ee) return 1; /* pass on event */
329 if (e->window != ee->prop.window) return 1; 329 if (e->window != (Ecore_WinCE_Window *)ee->prop.window) return 1;
330 if (ee->func.fn_delete_request) ee->func.fn_delete_request(ee); 330 if (ee->func.fn_delete_request) ee->func.fn_delete_request(ee);
331 331
332 return 1; 332 return 1;
@@ -340,7 +340,7 @@ _ecore_evas_wince_free(Ecore_Evas *ee)
340{ 340{
341 EINA_ERROR_PINFO("ecore evas free\n"); 341 EINA_ERROR_PINFO("ecore evas free\n");
342 342
343 ecore_wince_window_free(ee->prop.window); 343 ecore_wince_window_free((Ecore_WinCE_Window *)ee->prop.window);
344 ecore_event_window_unregister(ee->prop.window); 344 ecore_event_window_unregister(ee->prop.window);
345 ecore_evases = _ecore_list2_remove(ecore_evases, ee); 345 ecore_evases = _ecore_list2_remove(ecore_evases, ee);
346 _ecore_evas_wince_shutdown(); 346 _ecore_evas_wince_shutdown();
@@ -363,7 +363,7 @@ _ecore_evas_wince_move(Ecore_Evas *ee, int x, int y)
363 { 363 {
364 ee->x = x; 364 ee->x = x;
365 ee->y = y; 365 ee->y = y;
366 ecore_wince_window_move(ee->prop.window, x, y); 366 ecore_wince_window_move((Ecore_WinCE_Window *)ee->prop.window, x, y);
367 if (ee->func.fn_move) ee->func.fn_move(ee); 367 if (ee->func.fn_move) ee->func.fn_move(ee);
368 } 368 }
369} 369}
@@ -377,7 +377,7 @@ _ecore_evas_wince_resize(Ecore_Evas *ee, int width, int height)
377 { 377 {
378 ee->w = width; 378 ee->w = width;
379 ee->h = height; 379 ee->h = height;
380 ecore_wince_window_resize(ee->prop.window, width, height); 380 ecore_wince_window_resize((Ecore_WinCE_Window *)ee->prop.window, width, height);
381 if ((ee->rotation == 90) || (ee->rotation == 270)) 381 if ((ee->rotation == 90) || (ee->rotation == 270))
382 { 382 {
383 evas_output_size_set(ee->evas, ee->h, ee->w); 383 evas_output_size_set(ee->evas, ee->h, ee->w);
@@ -411,7 +411,7 @@ _ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int heigh
411 ee->y = y; 411 ee->y = y;
412 ee->w = width; 412 ee->w = width;
413 ee->h = height; 413 ee->h = height;
414 ecore_wince_window_move_resize(ee->prop.window, x, y, width, height); 414 ecore_wince_window_move_resize((Ecore_WinCE_Window *)ee->prop.window, x, y, width, height);
415 if ((ee->rotation == 90) || (ee->rotation == 270)) 415 if ((ee->rotation == 90) || (ee->rotation == 270))
416 { 416 {
417 evas_output_size_set(ee->evas, ee->h, ee->w); 417 evas_output_size_set(ee->evas, ee->h, ee->w);
@@ -514,7 +514,7 @@ _ecore_evas_wince_show(Ecore_Evas *ee)
514 ee->should_be_visible = 1; 514 ee->should_be_visible = 1;
515 if (ee->prop.avoid_damage) 515 if (ee->prop.avoid_damage)
516 _ecore_evas_wince_render(ee); 516 _ecore_evas_wince_render(ee);
517 ecore_wince_window_show(ee->prop.window); 517 ecore_wince_window_show((Ecore_WinCE_Window *)ee->prop.window);
518/* if (ee->prop.fullscreen) */ 518/* if (ee->prop.fullscreen) */
519/* ecore_wince_window_focus(ee->prop.window); */ 519/* ecore_wince_window_focus(ee->prop.window); */
520} 520}
@@ -524,7 +524,7 @@ _ecore_evas_wince_hide(Ecore_Evas *ee)
524{ 524{
525 EINA_ERROR_PINFO("ecore evas hide\n"); 525 EINA_ERROR_PINFO("ecore evas hide\n");
526 526
527 ecore_wince_window_hide(ee->prop.window); 527 ecore_wince_window_hide((Ecore_WinCE_Window *)ee->prop.window);
528 ee->should_be_visible = 0; 528 ee->should_be_visible = 0;
529} 529}
530 530
@@ -554,7 +554,7 @@ _ecore_evas_wince_title_set(Ecore_Evas *ee, const char *title)
554 if (ee->prop.title) free(ee->prop.title); 554 if (ee->prop.title) free(ee->prop.title);
555 ee->prop.title = NULL; 555 ee->prop.title = NULL;
556 if (title) ee->prop.title = strdup(title); 556 if (title) ee->prop.title = strdup(title);
557 ecore_wince_window_title_set(ee->prop.window, ee->prop.title); 557 ecore_wince_window_title_set((Ecore_WinCE_Window *)ee->prop.window, ee->prop.title);
558} 558}
559 559
560/* static void */ 560/* static void */
@@ -681,7 +681,7 @@ _ecore_evas_wince_fullscreen_set(Ecore_Evas *ee, int on)
681 if (on != 0) 681 if (on != 0)
682 { 682 {
683/* ecore_win32_window_shape_set(ee->engine.win32.window, 0, 0, NULL); */ 683/* ecore_win32_window_shape_set(ee->engine.win32.window, 0, 0, NULL); */
684 ecore_wince_window_fullscreen_set(ee->prop.window, on); 684 ecore_wince_window_fullscreen_set((Ecore_WinCE_Window *)ee->prop.window, on);
685 ee->w = GetSystemMetrics(SM_CXSCREEN); 685 ee->w = GetSystemMetrics(SM_CXSCREEN);
686 ee->h = GetSystemMetrics(SM_CYSCREEN); 686 ee->h = GetSystemMetrics(SM_CYSCREEN);
687 evas_output_size_set(ee->evas, ee->w, ee->h); 687 evas_output_size_set(ee->evas, ee->w, ee->h);
@@ -692,8 +692,8 @@ _ecore_evas_wince_fullscreen_set(Ecore_Evas *ee, int on)
692 int w; 692 int w;
693 int h; 693 int h;
694 694
695 ecore_wince_window_fullscreen_set(ee->prop.window, on); 695 ecore_wince_window_fullscreen_set((Ecore_WinCE_Window *)ee->prop.window, on);
696 ecore_wince_window_size_get(ee->prop.window, &w, &h); 696 ecore_wince_window_size_get((Ecore_WinCE_Window *)ee->prop.window, &w, &h);
697 ee->w = w; 697 ee->w = w;
698 ee->h = h; 698 ee->h = h;
699 evas_output_size_set(ee->evas, ee->w, ee->h); 699 evas_output_size_set(ee->evas, ee->w, ee->h);
@@ -818,7 +818,7 @@ ecore_evas_software_wince_new_internal(int backend,
818 ee->prop.sticky = 0; 818 ee->prop.sticky = 0;
819 /* FIXME: sticky to add */ 819 /* FIXME: sticky to add */
820 820
821 ee->prop.window = ecore_wince_window_new(parent, x, y, width, height); 821 ee->prop.window = (Ecore_Window)ecore_wince_window_new((Ecore_WinCE_Window *)parent, x, y, width, height);
822 if (!ee->prop.window) 822 if (!ee->prop.window)
823 { 823 {
824 _ecore_evas_wince_shutdown(); 824 _ecore_evas_wince_shutdown();
@@ -827,7 +827,7 @@ ecore_evas_software_wince_new_internal(int backend,
827 return NULL; 827 return NULL;
828 } 828 }
829 829
830 ecore_wince_window_fullscreen_set(ee->prop.window, fullscreen); 830 ecore_wince_window_fullscreen_set((Ecore_WinCE_Window *)ee->prop.window, fullscreen);
831 831
832 /* init evas here */ 832 /* init evas here */
833 ee->evas = evas_new(); 833 ee->evas = evas_new();
@@ -848,13 +848,13 @@ ecore_evas_software_wince_new_internal(int backend,
848 einfo->info.fullscreen = fullscreen; 848 einfo->info.fullscreen = fullscreen;
849 evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo); 849 evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo);
850 850
851 ecore_wince_window_backend_set(ee->prop.window, backend); 851 ecore_wince_window_backend_set((Ecore_WinCE_Window *)ee->prop.window, backend);
852 ecore_wince_window_suspend_set(ee->prop.window, einfo->func.suspend); 852 ecore_wince_window_suspend_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.suspend);
853 ecore_wince_window_resume_set(ee->prop.window, einfo->func.resume); 853 ecore_wince_window_resume_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.resume);
854 } 854 }
855 855
856 ecore_evases = _ecore_list2_prepend(ecore_evases, ee); 856 ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
857 ecore_event_window_register(ee->prop.window, ee, ee->evas, _ecore_evas_mouse_move_process); 857 ecore_event_window_register(ee->prop.window, ee, ee->evas, (Ecore_Event_Mouse_Move_Cb)_ecore_evas_mouse_move_process);
858 858
859 return ee; 859 return ee;
860} 860}