summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDaehyoung Ko <dko@nvidia.com>2010-08-27 10:20:17 -0700
committerYu-Huan Hsu <yhsu@nvidia.com>2010-08-27 12:05:24 -0700
commit0896d785822fe22b1d5b968a4bbd8dbf43ad3de3 (patch)
tree425248e126412580e96a665fcd8038ac0120e841 /drivers
parentbccaf58c73b6b9bb726b87b18d6e3b5d2b6e1106 (diff)
tegra-fb : fix the panning
Address should be calculated based on pitch not width Bug 709201 Change-Id: Ic2a73a9f665d212595bf4b61eeb7ea2984df7548 Reviewed-on: http://git-master/r/5718 Reviewed-by: Daehyoung Ko <dko@nvidia.com> Tested-by: Daehyoung Ko <dko@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/tegra-fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/tegra-fb.c b/drivers/video/tegra/tegra-fb.c
index a9e7f1e0b5ba..7243f6b907c7 100644
--- a/drivers/video/tegra/tegra-fb.c
+++ b/drivers/video/tegra/tegra-fb.c
@@ -186,7 +186,7 @@ int tegra_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
info->var.xoffset = var->xoffset;
info->var.yoffset = var->yoffset;
- addr = s_fb_addr + (var->yoffset * s_fb_width * s_fb_Bpp) +
+ addr = s_fb_addr + (var->yoffset * tegra_fb_info.fix.line_length ) +
(var->xoffset * s_fb_Bpp );
// window header - select Window A