video: tegra: set window size on mode change
authorErik Gilling <konkers@android.com>
Tue, 24 Aug 2010 23:13:39 +0000 (16:13 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:27:57 +0000 (16:27 -0700)
otherwise it's hardcoded by the platform-data

Signed-off-by: Erik Gilling <konkers@android.com>
drivers/video/tegra/fb.c

index 95c7c489b513fc3d8adc2870c402eef7ea88f2d6..dd3f772df93dc03be0a4dbeb36f372380ddc806b 100644 (file)
@@ -138,6 +138,11 @@ static int tegra_fb_set_par(struct fb_info *info)
                mode.v_front_porch = info->mode->lower_margin;
 
                tegra_dc_set_mode(tegra_fb->win->dc, &mode);
+
+               tegra_fb->win->w = info->mode->xres;
+               tegra_fb->win->h = info->mode->xres;
+               tegra_fb->win->out_w = info->mode->xres;
+               tegra_fb->win->out_h = info->mode->xres;
        }
        return 0;
 }