Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105531
b: refs/heads/master
c: 77a6e7a
h: refs/heads/master
i:
  105529: ae6b588
  105527: d649a75
v: v3
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Jul 24, 2008
1 parent 0799622 commit 94c69fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 1c0face9d4024bf942096297937759bdf0e1aeac
refs/heads/master: 77a6e7abb09de0e85a15e2fe42c21ffc59847759
5 changes: 4 additions & 1 deletion trunk/drivers/video/vga16fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,12 +1087,15 @@ static void vga16fb_copyarea(struct fb_info *info, const struct fb_copyarea *are
width = x2 - dx;
height = y2 - dy;

if (sx + dx < old_dx || sy + dy < old_dy)
return;

/* update sx1,sy1 */
sx += (dx - old_dx);
sy += (dy - old_dy);

/* the source must be completely inside the virtual screen */
if (sx < 0 || sy < 0 || (sx + width) > vxres || (sy + height) > vyres)
if (sx + width > vxres || sy + height > vyres)
return;

switch (info->fix.type) {
Expand Down

0 comments on commit 94c69fd

Please sign in to comment.