ecore-evas-wayland: Fix issue of passing wrong values to resize
authorChris Michael <cpmichael@osg.samsung.com>
Thu, 30 Jun 2016 15:03:07 +0000 (11:03 -0400)
committerChris Michael <cpmichael@osg.samsung.com>
Thu, 30 Jun 2016 15:03:07 +0000 (11:03 -0400)
Coverity detected that the same code was being passed to resize
regardless of canvas orientation. This patch fixes the issue by
passing the proper values to window_resize.

Fixes Coverity CID1357150

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

index 05e60f6..5f55b63 100644 (file)
@@ -604,7 +604,7 @@ _ecore_evas_wayland_shm_resize(Ecore_Evas *ee, int location)
         if (ECORE_EVAS_PORTRAIT(ee))
           ecore_wl2_window_resize(wdata->win, ee->w, ee->h, location);
         else
-          ecore_wl2_window_resize(wdata->win, ee->w, ee->h, location);
+          ecore_wl2_window_resize(wdata->win, ee->h, ee->w, location);
      }
 }