From fd943af50c41a5df04a82b9da7bed344ef929745 Mon Sep 17 00:00:00 2001 From: pengcheng chen Date: Tue, 23 Oct 2018 09:32:05 +0800 Subject: [PATCH] osd: fix osd get windows axis error [1/1] PD#IPTV-31 Problem: get sys class windows axis error Solution: fix osd get windows axis error Verify: u211 Change-Id: I5df5880bc43cb663255ecbf72d2b93b9c099b811 Signed-off-by: pengcheng chen --- drivers/amlogic/media/osd/osd_hw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index 9139c6bc0d36..cfc69d6b0fcc 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -2531,11 +2531,11 @@ void osd_get_window_axis_hw(u32 index, s32 *x0, s32 *y0, s32 *x1, s32 *y1) *x0 = osd_hw.free_dst_data_backup[index].x_start; *x1 = osd_hw.free_dst_data_backup[index].x_end; } else { - *y0 = osd_hw.dst_data[index].x; - *y1 = osd_hw.dst_data[index].y; - *x0 = osd_hw.dst_data[index].x + + *x0 = osd_hw.dst_data[index].x; + *y0 = osd_hw.dst_data[index].y; + *x1 = osd_hw.dst_data[index].x + osd_hw.dst_data[index].w - 1; - *x1 = osd_hw.dst_data[index].y + + *y1 = osd_hw.dst_data[index].y + osd_hw.dst_data[index].h - 1; } }