diff options
author | SooChan Lim <sc1.lim@samsung.com> | 2019-08-12 14:41:23 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2019-08-12 14:41:23 +0900 |
commit | b0d053cd19667fa17b71a82ec733853dff04fa2c (patch) | |
tree | 2d06c338dbc41a60c08c1627218ba56d8fef95d8 | |
parent | 72b164d14edcb72786aa9c58d6787b42fc95b970 (diff) | |
download | libtdm-vc4-b0d053cd19667fa17b71a82ec733853dff04fa2c.tar.gz libtdm-vc4-b0d053cd19667fa17b71a82ec733853dff04fa2c.tar.bz2 libtdm-vc4-b0d053cd19667fa17b71a82ec733853dff04fa2c.zip |
change the dst size at the mirror mode
Change-Id: I6fcb3a6bf88181541551ac674394edba0022c86c
-rw-r--r-- | src/tdm_vc4_display.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tdm_vc4_display.c b/src/tdm_vc4_display.c index 12f235f..0431b69 100644 --- a/src/tdm_vc4_display.c +++ b/src/tdm_vc4_display.c @@ -2461,14 +2461,15 @@ vc4_output_data_prepare_mirror_commit(tdm_vc4_output_data *output_data, tbm_surf info.src_config.size.h = surf_info.width; info.src_config.size.v = surf_info.height; + info.src_config.format = TBM_FORMAT_ARGB8888; info.src_config.pos.x = 0; info.src_config.pos.y = 0; info.src_config.pos.w = surf_info.width; info.src_config.pos.h = surf_info.height; info.dst_pos.x = dst_pos.x; info.dst_pos.y = dst_pos.y; - info.dst_pos.w = dst_pos.w; - info.dst_pos.h = dst_pos.h; + info.dst_pos.w = output_data->current_mode->hdisplay; + info.dst_pos.h = output_data->current_mode->vdisplay; info.transform = TDM_TRANSFORM_NORMAL; ret = vc4_layer_set_info((tdm_layer *)layer_data, &info); |