make the target_window info get the proper w/h. 92/210592/2
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 23 Jul 2019 01:14:57 +0000 (10:14 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 23 Jul 2019 01:24:44 +0000 (10:24 +0900)
Change-Id: Ib493b75d3534616e1c015b7ea9695d69688862df

src/tdm_vc4_hwc.c

index ab7f8ce..91eef2d 100644 (file)
@@ -698,13 +698,13 @@ vc4_hwc_target_window_set_info(tdm_vc4_hwc_data *hwc_data, int width, int height
 
        info.dst_pos.x = 0;
        info.dst_pos.y = 0;
-       info.dst_pos.h = width;
-       info.dst_pos.w = height;
+       info.dst_pos.w = width;
+       info.dst_pos.h = height;
 
        info.src_config.pos.x = 0;
        info.src_config.pos.y = 0;
-       info.src_config.pos.h = width;
-       info.src_config.pos.w = height;
+       info.src_config.pos.w = width;
+       info.src_config.pos.h = height;
 
        info.src_config.size.h = width;
        info.src_config.size.v = height;
@@ -730,13 +730,13 @@ vc4_hwc_initailize_target_window(tdm_vc4_hwc_data *hwc_data)
 
        info.dst_pos.x = 0;
        info.dst_pos.y = 0;
-       info.dst_pos.h = 2;
        info.dst_pos.w = 1;
+       info.dst_pos.h = 2;
 
        info.src_config.pos.x = 0;
        info.src_config.pos.y = 0;
-       info.src_config.pos.h = 2;
        info.src_config.pos.w = 1;
+       info.src_config.pos.h = 2;
 
        info.src_config.size.h = 2;
        info.src_config.size.v = 1;