ecore-drm: Fix output_geometry_get function
authorChris Michael <cp.michael@samsung.com>
Tue, 7 Apr 2015 16:32:15 +0000 (12:32 -0400)
committerStefan Schmidt <s.schmidt@samsung.com>
Thu, 9 Apr 2015 15:46:35 +0000 (17:46 +0200)
Summary: This fixes an issue where heights of all outputs would get
added, thus causing the ecore_evas to be created at the wrong size.
Now, the height will be whichever output is larger.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm_output.c

index ab7ee31..36c4f09 100644 (file)
@@ -1015,7 +1015,7 @@ ecore_drm_outputs_geometry_get(Ecore_Drm_Device *dev, int *x, int *y, int *w, in
         ox += output->x;
         oy += output->y;
         ow += MAX(ow, output->current_mode->width);
-        oh += MAX(oh, output->current_mode->height);
+        oh = MAX(oh, output->current_mode->height);
      }
 
    if (x) *x = ox;