mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
vga16fb: restrict to blit rectangles with widths of multiples of 8 pixels
Advertise that vga16fb can only handle widths that are 8-pixel-multiple only (software limitation). To ensure that a legal font is available, SELECT an 8x16 font in Kconfig. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2d2699d984
commit
d60d2d8a42
2 changed files with 3 additions and 0 deletions
|
@ -519,6 +519,7 @@ config FB_VGA16
|
||||||
select FB_CFB_COPYAREA
|
select FB_CFB_COPYAREA
|
||||||
select FB_CFB_IMAGEBLIT
|
select FB_CFB_IMAGEBLIT
|
||||||
select VGASTATE
|
select VGASTATE
|
||||||
|
select FONT_8x16 if FRAMEBUFFER_CONSOLE
|
||||||
help
|
help
|
||||||
This is the frame buffer device driver for VGA 16 color graphic
|
This is the frame buffer device driver for VGA 16 color graphic
|
||||||
cards. Say Y if you have such a card.
|
cards. Say Y if you have such a card.
|
||||||
|
|
|
@ -1378,6 +1378,8 @@ static int __init vga16fb_probe(struct platform_device *dev)
|
||||||
info->fbops = &vga16fb_ops;
|
info->fbops = &vga16fb_ops;
|
||||||
info->var = vga16fb_defined;
|
info->var = vga16fb_defined;
|
||||||
info->fix = vga16fb_fix;
|
info->fix = vga16fb_fix;
|
||||||
|
/* supports 8-pixel wide blit rectangles only */
|
||||||
|
info->pixmap.blit_x = 1 << (8 - 1);
|
||||||
info->flags = FBINFO_FLAG_DEFAULT |
|
info->flags = FBINFO_FLAG_DEFAULT |
|
||||||
FBINFO_HWACCEL_YPAN;
|
FBINFO_HWACCEL_YPAN;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue