summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/win32
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-01-18 22:26:10 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-01-18 22:26:10 +0900
commit892b1c5be336ce44ee87e753041ce1c6c0cca227 (patch)
tree56dbe333914e7b7255101327fb1f007d40a417fa /src/modules/ecore_evas/engines/win32
parent8cd92c17e0fb5e750c75df00c5959347ebbe55a3 (diff)
ecore_evas - applied macro to check rotation state.
also, let the potrait compare on the higher priority. if you can suggest better macro name, then please modify it.
Diffstat (limited to 'src/modules/ecore_evas/engines/win32')
-rw-r--r--src/modules/ecore_evas/engines/win32/ecore_evas_win32.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
index 67b074506a..4f73a2ba80 100644
--- a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
+++ b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
@@ -376,15 +376,15 @@ _ecore_evas_win32_event_window_configure(void *data EINA_UNUSED, int type EINA_U
376 ee->req.w = ee->w; 376 ee->req.w = ee->w;
377 ee->req.h = ee->h; 377 ee->req.h = ee->h;
378 378
379 if ((ee->rotation == 90) || (ee->rotation == 270)) 379 if (ECORE_EVAS_PORTRAIT(ee))
380 { 380 {
381 evas_output_size_set(ee->evas, ee->h, ee->w); 381 evas_output_size_set(ee->evas, ee->w, ee->h);
382 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w); 382 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h);
383 } 383 }
384 else 384 else
385 { 385 {
386 evas_output_size_set(ee->evas, ee->w, ee->h); 386 evas_output_size_set(ee->evas, ee->h, ee->w);
387 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h); 387 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w);
388 } 388 }
389 if (ee->prop.avoid_damage) 389 if (ee->prop.avoid_damage)
390 { 390 {
@@ -481,15 +481,15 @@ _ecore_evas_win32_resize(Ecore_Evas *ee, int width, int height)
481 ee->h = height; 481 ee->h = height;
482 ecore_win32_window_resize((struct _Ecore_Win32_Window *)ee->prop.window, 482 ecore_win32_window_resize((struct _Ecore_Win32_Window *)ee->prop.window,
483 width, height); 483 width, height);
484 if ((ee->rotation == 90) || (ee->rotation == 270)) 484 if (ECORE_EVAS_PORTRAIT(ee))
485 { 485 {
486 evas_output_size_set(ee->evas, ee->h, ee->w); 486 evas_output_size_set(ee->evas, ee->w, ee->h);
487 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w); 487 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h);
488 } 488 }
489 else 489 else
490 { 490 {
491 evas_output_size_set(ee->evas, ee->w, ee->h); 491 evas_output_size_set(ee->evas, ee->h, ee->w);
492 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h); 492 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w);
493 } 493 }
494 if (ee->prop.avoid_damage) 494 if (ee->prop.avoid_damage)
495 { 495 {
@@ -528,15 +528,15 @@ _ecore_evas_win32_move_resize(Ecore_Evas *ee, int x, int y, int width, int heigh
528 ee->h = height; 528 ee->h = height;
529 ecore_win32_window_move_resize((struct _Ecore_Win32_Window *)ee->prop.window, 529 ecore_win32_window_move_resize((struct _Ecore_Win32_Window *)ee->prop.window,
530 x, y, width, height); 530 x, y, width, height);
531 if ((ee->rotation == 90) || (ee->rotation == 270)) 531 if (ECORE_EVAS_PORTRAIT(ee))
532 { 532 {
533 evas_output_size_set(ee->evas, ee->h, ee->w); 533 evas_output_size_set(ee->evas, ee->w, ee->h);
534 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w); 534 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h);
535 } 535 }
536 else 536 else
537 { 537 {
538 evas_output_size_set(ee->evas, ee->w, ee->h); 538 evas_output_size_set(ee->evas, ee->h, ee->w);
539 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h); 539 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w);
540 } 540 }
541 if (ee->prop.avoid_damage) 541 if (ee->prop.avoid_damage)
542 { 542 {
@@ -586,7 +586,7 @@ _ecore_evas_win32_rotation_set_internal(Ecore_Evas *ee, int rotation)
586 &w, &h); 586 &w, &h);
587 ecore_win32_window_resize((struct _Ecore_Win32_Window *)ee->prop.window, 587 ecore_win32_window_resize((struct _Ecore_Win32_Window *)ee->prop.window,
588 h, w); 588 h, w);
589 if ((rotation == 0) || (rotation == 180)) 589 if (ECORE_EVAS_PORTRAIT(ee))
590 { 590 {
591 evas_output_size_set(ee->evas, ee->w, ee->h); 591 evas_output_size_set(ee->evas, ee->w, ee->h);
592 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h); 592 evas_output_viewport_set(ee->evas, 0, 0, ee->w, ee->h);
@@ -618,10 +618,10 @@ _ecore_evas_win32_rotation_set_internal(Ecore_Evas *ee, int rotation)
618 if (ee->func.fn_resize) ee->func.fn_resize(ee); 618 if (ee->func.fn_resize) ee->func.fn_resize(ee);
619 } 619 }
620 620
621 if ((ee->rotation == 90) || (ee->rotation == 270)) 621 if (ECORE_EVAS_PORTRAIT(ee))
622 evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w);
623 else
624 evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); 622 evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
623 else
624 evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w);
625} 625}
626 626
627static void 627static void