mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
vt(4): Use vt_fb_drawrect() and vt_fb_setpixel() in all vt_fb-derivative
Review: https://reviews.freebsd.org/D789 Reviewed by: nwhitehorn Approved by: nwhitehorn MFC after: 2 days
This commit is contained in:
parent
1952f0b519
commit
1365d0770d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271684
@ -62,6 +62,8 @@ static struct vt_driver vt_efifb_driver = {
|
||||
.vd_blank = vt_fb_blank,
|
||||
.vd_bitblt_text = vt_fb_bitblt_text,
|
||||
.vd_bitblt_bmp = vt_fb_bitblt_bitmap,
|
||||
.vd_drawrect = vt_fb_drawrect,
|
||||
.vd_setpixel = vt_fb_setpixel,
|
||||
.vd_fb_ioctl = vt_fb_ioctl,
|
||||
.vd_fb_mmap = vt_fb_mmap,
|
||||
/* Better than VGA, but still generic driver. */
|
||||
|
@ -61,6 +61,8 @@ static struct vt_driver vt_fb_early_driver = {
|
||||
.vd_blank = vt_fb_blank,
|
||||
.vd_bitblt_text = vt_fb_bitblt_text,
|
||||
.vd_bitblt_bmp = vt_fb_bitblt_bitmap,
|
||||
.vd_drawrect = vt_fb_drawrect,
|
||||
.vd_setpixel = vt_fb_setpixel,
|
||||
.vd_priority = VD_PRIORITY_GENERIC,
|
||||
};
|
||||
|
||||
|
@ -41,9 +41,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <dev/vt/hw/fb/vt_fb.h>
|
||||
#include <dev/vt/colors/vt_termcolors.h>
|
||||
|
||||
static vd_drawrect_t vt_fb_drawrect;
|
||||
static vd_setpixel_t vt_fb_setpixel;
|
||||
|
||||
static struct vt_driver vt_fb_driver = {
|
||||
.vd_name = "fb",
|
||||
.vd_init = vt_fb_init,
|
||||
@ -146,7 +143,7 @@ vt_fb_mmap(struct vt_device *vd, vm_ooffset_t offset, vm_paddr_t *paddr,
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
vt_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color)
|
||||
{
|
||||
struct fb_info *info;
|
||||
@ -181,7 +178,7 @@ vt_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color)
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
vt_fb_drawrect(struct vt_device *vd, int x1, int y1, int x2, int y2, int fill,
|
||||
term_color_t color)
|
||||
{
|
||||
|
@ -40,6 +40,8 @@ vd_init_t vt_fb_init;
|
||||
vd_blank_t vt_fb_blank;
|
||||
vd_bitblt_text_t vt_fb_bitblt_text;
|
||||
vd_bitblt_bmp_t vt_fb_bitblt_bitmap;
|
||||
vd_drawrect_t vt_fb_drawrect;
|
||||
vd_setpixel_t vt_fb_setpixel;
|
||||
vd_postswitch_t vt_fb_postswitch;
|
||||
vd_fb_ioctl_t vt_fb_ioctl;
|
||||
vd_fb_mmap_t vt_fb_mmap;
|
||||
|
@ -78,6 +78,8 @@ static struct vt_driver vt_ps3fb_driver = {
|
||||
.vd_blank = vt_fb_blank,
|
||||
.vd_bitblt_text = vt_fb_bitblt_text,
|
||||
.vd_bitblt_bmp = vt_fb_bitblt_bitmap,
|
||||
.vd_drawrect = vt_fb_drawrect,
|
||||
.vd_setpixel = vt_fb_setpixel,
|
||||
.vd_fb_ioctl = vt_fb_ioctl,
|
||||
.vd_fb_mmap = vt_fb_mmap,
|
||||
/* Better than VGA, but still generic driver. */
|
||||
|
Loading…
Reference in New Issue
Block a user