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 <pengcheng.chen@amlogic.com>
This commit is contained in:
pengcheng chen
2018-10-23 09:32:05 +08:00
committed by Jianxin Pan
parent 37c199da52
commit fd943af50c

View File

@@ -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;
}
}