From eeaf3becf30e9bd164b034ce9987209979a57b2b Mon Sep 17 00:00:00 2001 From: zwl Date: Thu, 22 May 2014 16:03:18 +0800 Subject: [PATCH] rk fb: add set win state in set_par and pan_display that may use for BOX --- drivers/video/rockchip/rk_fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 604ae96bc98a..dea4637a57b1 100755 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -1145,6 +1145,7 @@ static int rk_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info win->area[0].cbr_start = fix->mmio_start;//fix->smem_start + xvir * yvir; win->area[0].state=1; win->area_num = 1; + win->state = 1; dev_drv->ops->pan_display(dev_drv, win_id); if (rk_fb->disp_mode == DUAL) { @@ -2503,6 +2504,7 @@ if (rk_fb->disp_mode != DUAL) { win->area[0].yvir = var->yres_virtual; win->area[0].state=1; win->area_num = 1; + win->state = 1; win->alpha_mode = 4;//AB_SRC_OVER; win->alpha_en = ((win->format == ARGB888)||(win->format == ABGR888)) ? 1 : 0; win->g_alpha_val = 0; -- 2.34.1