e_output: apply the screen rotation only for the primary output 17/127317/1
authorBoram Park <boram1288.park@samsung.com>
Sun, 23 Apr 2017 03:41:36 +0000 (12:41 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 27 Apr 2017 04:43:50 +0000 (13:43 +0900)
Change-Id: I8b6dd23dea04e3bf66bd31c062ffbc9980c77400

src/bin/e_output.c

index 7bda85a..1505d6b 100644 (file)
@@ -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;
 }