summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-09-29 17:03:38 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-09-29 17:03:38 +0000
commit439168c6ff3989c0f55020cdaf821abf9f2c73fc (patch)
tree49dcc38747f8aeaaa53445f75df474827da74fd8 /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
parent62bcf9643e1919d579fa0947863149837d174e67 (diff)
tab------------
SVN revision: 52896
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c142
1 files changed, 71 insertions, 71 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 b41c2f45aa..c1de52c873 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
@@ -52,9 +52,9 @@ _ecore_evas_wince_render(Ecore_Evas *ee)
52 52
53 EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2) 53 EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
54 { 54 {
55 if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2); 55 if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
56 rend |= _ecore_evas_buffer_render(ee2); 56 rend |= _ecore_evas_buffer_render(ee2);
57 if (ee2->func.fn_post_render) ee2->func.fn_post_render(ee2); 57 if (ee2->func.fn_post_render) ee2->func.fn_post_render(ee2);
58 } 58 }
59#endif 59#endif
60 if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee); 60 if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee);
@@ -110,10 +110,10 @@ _ecore_evas_wince_shutdown(void)
110 _ecore_evas_init_count--; 110 _ecore_evas_init_count--;
111 if (_ecore_evas_init_count == 0) 111 if (_ecore_evas_init_count == 0)
112 { 112 {
113 int i; 113 int i;
114 114
115 for (i = 0; i < ECORE_EVAS_EVENT_COUNT; i++) 115 for (i = 0; i < ECORE_EVAS_EVENT_COUNT; i++)
116 ecore_event_handler_del(ecore_evas_event_handlers[i]); 116 ecore_event_handler_del(ecore_evas_event_handlers[i]);
117 ecore_event_evas_shutdown(); 117 ecore_event_evas_shutdown();
118 } 118 }
119 119
@@ -400,65 +400,65 @@ _ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int heigh
400/* if (rot_dif < 0) rot_dif = -rot_dif; */ 400/* if (rot_dif < 0) rot_dif = -rot_dif; */
401/* if (!strcmp(ee->driver, "software_ddraw")) */ 401/* if (!strcmp(ee->driver, "software_ddraw")) */
402/* { */ 402/* { */
403/* Evas_Engine_Info_Software_16_WinCE *einfo; */ 403/* Evas_Engine_Info_Software_16_WinCE *einfo; */
404 404
405/* einfo = (Evas_Engine_Info_Software_16_WinCE *)evas_engine_info_get(ee->evas); */ 405/* einfo = (Evas_Engine_Info_Software_16_WinCE *)evas_engine_info_get(ee->evas); */
406/* if (!einfo) return; */ 406/* if (!einfo) return; */
407/* if (rot_dif != 180) */ 407/* if (rot_dif != 180) */
408/* { */ 408/* { */
409/* int minw, minh, maxw, maxh, basew, baseh, stepw, steph; */ 409/* int minw, minh, maxw, maxh, basew, baseh, stepw, steph; */
410 410
411/* einfo->info.rotation = rotation; */ 411/* einfo->info.rotation = rotation; */
412/* evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo); */ 412/* evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo); */
413/* if (!ee->prop.fullscreen) */ 413/* if (!ee->prop.fullscreen) */
414/* { */ 414/* { */
415/* ecore_wince_window_resize(ee->prop.window, ee->h, ee->w); */ 415/* ecore_wince_window_resize(ee->prop.window, ee->h, ee->w); */
416/* ee->expecting_resize.w = ee->h; */ 416/* ee->expecting_resize.w = ee->h; */
417/* ee->expecting_resize.h = ee->w; */ 417/* ee->expecting_resize.h = ee->w; */
418/* } */ 418/* } */
419/* else */ 419/* else */
420/* { */ 420/* { */
421/* int w, h; */ 421/* int w, h; */
422 422
423/* ecore_wince_window_size_get(ee->prop.window, &w, &h); */ 423/* ecore_wince_window_size_get(ee->prop.window, &w, &h); */
424/* ecore_wince_window_resize(ee->prop.window, h, w); */ 424/* ecore_wince_window_resize(ee->prop.window, h, w); */
425/* if ((rotation == 0) || (rotation == 180)) */ 425/* if ((rotation == 0) || (rotation == 180)) */
426/* { */ 426/* { */
427/* evas_output_size_set(ee->evas, ee->w, ee->h); */ 427/* evas_output_size_set(ee->evas, ee->w, ee->h); */
428/* evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h); */ 428/* evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h); */
429/* } */ 429/* } */
430/* else */ 430/* else */
431/* { */ 431/* { */
432/* evas_output_size_set(ee->evas, ee->h, ee->w); */ 432/* evas_output_size_set(ee->evas, ee->h, ee->w); */
433/* evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w); */ 433/* evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w); */
434/* } */ 434/* } */
435/* if (ee->func.fn_resize) ee->func.fn_resize(ee); */ 435/* if (ee->func.fn_resize) ee->func.fn_resize(ee); */
436/* } */ 436/* } */
437/* ecore_evas_size_min_get(ee, &minw, &minh); */ 437/* ecore_evas_size_min_get(ee, &minw, &minh); */
438/* ecore_evas_size_max_get(ee, &maxw, &maxh); */ 438/* ecore_evas_size_max_get(ee, &maxw, &maxh); */
439/* ecore_evas_size_base_get(ee, &basew, &baseh); */ 439/* ecore_evas_size_base_get(ee, &basew, &baseh); */
440/* ecore_evas_size_step_get(ee, &stepw, &steph); */ 440/* ecore_evas_size_step_get(ee, &stepw, &steph); */
441/* ee->rotation = rotation; */ 441/* ee->rotation = rotation; */
442/* ecore_evas_size_min_set(ee, minh, minw); */ 442/* ecore_evas_size_min_set(ee, minh, minw); */
443/* ecore_evas_size_max_set(ee, maxh, maxw); */ 443/* ecore_evas_size_max_set(ee, maxh, maxw); */
444/* ecore_evas_size_base_set(ee, baseh, basew); */ 444/* ecore_evas_size_base_set(ee, baseh, basew); */
445/* ecore_evas_size_step_set(ee, steph, stepw); */ 445/* ecore_evas_size_step_set(ee, steph, stepw); */
446/* _ecore_evas_wince_mouse_move_process(ee, ee->mouse.x, ee->mouse.y, */ 446/* _ecore_evas_wince_mouse_move_process(ee, ee->mouse.x, ee->mouse.y, */
447/* ecore_wince_current_time_get()); */ 447/* ecore_wince_current_time_get()); */
448/* } */ 448/* } */
449/* else */ 449/* else */
450/* { */ 450/* { */
451/* einfo->info.rotation = rotation; */ 451/* einfo->info.rotation = rotation; */
452/* evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo); */ 452/* evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo); */
453/* ee->rotation = rotation; */ 453/* ee->rotation = rotation; */
454/* _ecore_evas_wince_mouse_move_process(ee, ee->mouse.x, ee->mouse.y, */ 454/* _ecore_evas_wince_mouse_move_process(ee, ee->mouse.x, ee->mouse.y, */
455/* ecore_wince_current_time_get()); */ 455/* ecore_wince_current_time_get()); */
456/* if (ee->func.fn_resize) ee->func.fn_resize(ee); */ 456/* if (ee->func.fn_resize) ee->func.fn_resize(ee); */
457/* } */ 457/* } */
458/* if ((ee->rotation == 90) || (ee->rotation == 270)) */ 458/* if ((ee->rotation == 90) || (ee->rotation == 270)) */
459/* evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w); */ 459/* evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w); */
460/* else */ 460/* else */
461/* evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); */ 461/* evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); */
462/* } */ 462/* } */
463/* } */ 463/* } */
464 464
@@ -567,12 +567,12 @@ _ecore_evas_wince_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int ho
567 567
568 if (obj == NULL) 568 if (obj == NULL)
569 { 569 {
570 ee->prop.cursor.object = NULL; 570 ee->prop.cursor.object = NULL;
571 ee->prop.cursor.layer = 0; 571 ee->prop.cursor.layer = 0;
572 ee->prop.cursor.hot.x = 0; 572 ee->prop.cursor.hot.x = 0;
573 ee->prop.cursor.hot.y = 0; 573 ee->prop.cursor.hot.y = 0;
574 ecore_wince_window_cursor_show(ee->prop.window, 1); 574 ecore_wince_window_cursor_show(ee->prop.window, 1);
575 return; 575 return;
576 } 576 }
577 577
578 ee->prop.cursor.object = obj; 578 ee->prop.cursor.object = obj;
@@ -585,8 +585,8 @@ _ecore_evas_wince_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int ho
585 evas_pointer_output_xy_get(ee->evas, &x, &y); 585 evas_pointer_output_xy_get(ee->evas, &x, &y);
586 evas_object_layer_set(ee->prop.cursor.object, ee->prop.cursor.layer); 586 evas_object_layer_set(ee->prop.cursor.object, ee->prop.cursor.layer);
587 evas_object_move(ee->prop.cursor.object, 587 evas_object_move(ee->prop.cursor.object,
588 x - ee->prop.cursor.hot.x, 588 x - ee->prop.cursor.hot.x,
589 y - ee->prop.cursor.hot.y); 589 y - ee->prop.cursor.hot.y);
590 evas_object_pass_events_set(ee->prop.cursor.object, 1); 590 evas_object_pass_events_set(ee->prop.cursor.object, 1);
591 if (evas_pointer_inside_get(ee->evas)) 591 if (evas_pointer_inside_get(ee->evas))
592 evas_object_show(ee->prop.cursor.object); 592 evas_object_show(ee->prop.cursor.object);