summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-10-11 13:07:09 -0400
committerChris Michael <cp.michael@samsung.com>2017-10-11 13:07:09 -0400
commit5a93b22d50554e928305ea48a5538d92f3fe600c (patch)
treee23b6b0b89149814cec012ef6c7dd17ee21652cb /src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
parent6701bd162ddf7726cea8982ff274e7eb88896776 (diff)
ecore-evas-drm: Reduce code duplication
Minor code cleanup to reduce duplicated function calls. NB: No functional changes Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 521e05bd42..99f2e8d113 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -316,28 +316,17 @@ _drm_rotation_do(Ecore_Evas *ee, int rotation, int resize)
316 evas_output_size_set(ee->evas, ee->h, ee->w); 316 evas_output_size_set(ee->evas, ee->h, ee->w);
317 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w); 317 evas_output_viewport_set(ee->evas, 0, 0, ee->h, ee->w);
318 } 318 }
319
320 if (ee->func.fn_resize) ee->func.fn_resize(ee);
321
322 if (ECORE_EVAS_PORTRAIT(ee))
323 evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
324 else
325 evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w);
326 } 319 }
327
328 ee->rotation = rotation;
329 } 320 }
330 else
331 {
332 ee->rotation = rotation;
333 321
334 if (ee->func.fn_resize) ee->func.fn_resize(ee); 322 ee->rotation = rotation;
335 323
336 if (ECORE_EVAS_PORTRAIT(ee)) 324 if (ee->func.fn_resize) ee->func.fn_resize(ee);
337 evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); 325
338 else 326 if (ECORE_EVAS_PORTRAIT(ee))
339 evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w); 327 evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
340 } 328 else
329 evas_damage_rectangle_add(ee->evas, 0, 0, ee->h, ee->w);
341} 330}
342 331
343static void 332static void