From f7300ee71672e8e3dfdeb76d00dcfa4ee39af32b Mon Sep 17 00:00:00 2001 From: Joy Cho Date: Tue, 19 Mar 2019 08:23:58 +0900 Subject: [PATCH] osd: Fix a wrong fb window axis issue Change-Id: I591510797a03c69648c3da38d03b60fc46fa38dd --- drivers/amlogic/media/osd/osd_fb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/osd/osd_fb.c b/drivers/amlogic/media/osd/osd_fb.c index f533941f8e58..77724e5571f4 100644 --- a/drivers/amlogic/media/osd/osd_fb.c +++ b/drivers/amlogic/media/osd/osd_fb.c @@ -422,7 +422,8 @@ static void osd_set_fb_parameters(int index, const struct vinfo_s *vinfo) osd_set_free_scale_enable_hw(index, 0); osd_set_free_scale_mode_hw(index, 1); - osd_set_free_scale_axis_hw(index, 0, 0, vinfo->width, vinfo->height); + osd_set_free_scale_axis_hw(index, 0, 0, + (vinfo->width - 1), (vinfo->height - 1)); /* OVERSCAN */ overscan_window(vinfo, overscan_ratio, &left, &top, &width, &height);