Skip to content

Commit

Permalink
vga16fb: actually support widths in multiples of 8
Browse files Browse the repository at this point in the history
vga16fb does not just support 8-pixel wide rectangles, but rectangles with
widths in multiples of 8.

Signed-off-by: Antonino Daplas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
adaplas authored and Linus Torvalds committed May 8, 2007
1 parent 2ae8547 commit 7e645ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/vga16fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1378,8 +1378,8 @@ static int __init vga16fb_probe(struct platform_device *dev)
info->fbops = &vga16fb_ops;
info->var = vga16fb_defined;
info->fix = vga16fb_fix;
/* supports 8-pixel wide blit rectangles only */
info->pixmap.blit_x = 1 << (8 - 1);
/* supports rectangles with widths of multiples of 8 */
info->pixmap.blit_x = 1 << 7 | 1 << 15 | 1 << 23 | 1 << 31;
info->flags = FBINFO_FLAG_DEFAULT |
FBINFO_HWACCEL_YPAN;

Expand Down

0 comments on commit 7e645ff

Please sign in to comment.