Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271201
b: refs/heads/master
c: f5b9cc6
h: refs/heads/master
i:
  271199: 6949bb7
v: v3
  • Loading branch information
Laurent Pinchart committed Aug 19, 2011
1 parent 48f2090 commit 07bed4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09a9168d4c3f3bf3b0f9306966379df500f201d2
refs/heads/master: f5b9cc6a66feee205609ef98b1f5a51168c26b74
6 changes: 3 additions & 3 deletions trunk/drivers/video/intelfb/intelfbhw.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ int intelfbhw_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
xoffset = ROUND_DOWN_TO(var->xoffset, 8);
yoffset = var->yoffset;

if ((xoffset + var->xres > var->xres_virtual) ||
(yoffset + var->yres > var->yres_virtual))
if ((xoffset + info->var.xres > info->var.xres_virtual) ||
(yoffset + info->var.yres > info->var.yres_virtual))
return -EINVAL;

offset = (yoffset * dinfo->pitch) +
(xoffset * var->bits_per_pixel) / 8;
(xoffset * info->var.bits_per_pixel) / 8;

offset += dinfo->fb.offset << 12;

Expand Down

0 comments on commit 07bed4a

Please sign in to comment.