From: Boram Park Date: Sun, 23 Apr 2017 03:41:36 +0000 (+0900) Subject: e_output: apply the screen rotation only for the primary output X-Git-Tag: submit/tizen_3.0/20170517.031232~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba2ff43db038cc466a1c51bbee3b65ffc3dd42d3;p=platform%2Fupstream%2Fenlightenment.git e_output: apply the screen rotation only for the primary output Change-Id: I8b6dd23dea04e3bf66bd31c062ffbc9980c77400 --- diff --git a/src/bin/e_output.c b/src/bin/e_output.c index f8b96164a5..2b56fbc520 100644 --- a/src/bin/e_output.c +++ b/src/bin/e_output.c @@ -307,6 +307,7 @@ e_output_update(E_Output *output) unsigned int phy_w, phy_h; const tdm_output_mode *tmodes = NULL; int num_tmodes = 0; + unsigned int pipe = 0; int size = 0; error = tdm_output_get_model_info(output->toutput, &maker, &screen, NULL); @@ -316,6 +317,11 @@ e_output_update(E_Output *output) return EINA_FALSE; } + /* we apply the screen rotation only for the primary output */ + error = tdm_output_get_pipe(output->toutput, &pipe); + if (error == TDM_ERROR_NONE && pipe == 0) + output->config.rotation = e_comp->e_comp_screen->rotation; + if (maker) { size = strlen(output->id) + 1 + strlen(maker) + 1; @@ -489,6 +495,8 @@ e_output_mode_apply(E_Output *output, E_Output_Mode *mode) output->config.geom.x, output->config.geom.y, output->config.geom.w, output->config.geom.h); + INF("E_OUTPUT: rotation = %d", output->config.rotation); + return EINA_TRUE; }