diff options
Diffstat (limited to 'drivers/video/tegra/fb.c')
-rw-r--r-- | drivers/video/tegra/fb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 72583977fa8f..9b7d5f8e8e3d 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -39,6 +39,7 @@ #include "host/dev.h" #include "nvmap/nvmap.h" +#include "dc/dc_priv.h" struct tegra_fb_info { struct tegra_dc_win *win; @@ -398,8 +399,8 @@ static int tegra_fb_set_windowattr(struct tegra_fb_info *tegra_fb, return 0; } - xres = tegra_fb->info->var.xres; - yres = tegra_fb->info->var.yres; + xres = tegra_fb->win->dc->mode.h_active; + yres = tegra_fb->win->dc->mode.v_active; win->flags = TEGRA_WIN_FLAG_ENABLED; if (flip_win->attr.blend == TEGRA_FB_WIN_BLEND_PREMULT) |