Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/hw/vbefb/vbefb.c
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | vt_vbefb_init(struct vt_device *vd) | ||||
if (info->fb_depth == 8) | if (info->fb_depth == 8) | ||||
format = COLOR_FORMAT_VGA; | format = COLOR_FORMAT_VGA; | ||||
else | else | ||||
format = COLOR_FORMAT_RGB; | format = COLOR_FORMAT_RGB; | ||||
roff = ffs(vbefb->fb_mask_red) - 1; | roff = ffs(vbefb->fb_mask_red) - 1; | ||||
goff = ffs(vbefb->fb_mask_green) - 1; | goff = ffs(vbefb->fb_mask_green) - 1; | ||||
boff = ffs(vbefb->fb_mask_blue) - 1; | boff = ffs(vbefb->fb_mask_blue) - 1; | ||||
vt_generate_cons_palette(info->fb_cmap, format, | vt_config_cons_colors(info, format, | ||||
vbefb->fb_mask_red >> roff, roff, | vbefb->fb_mask_red >> roff, roff, | ||||
vbefb->fb_mask_green >> goff, goff, | vbefb->fb_mask_green >> goff, goff, | ||||
vbefb->fb_mask_blue >> boff, boff); | vbefb->fb_mask_blue >> boff, boff); | ||||
/* Mark cmap initialized. */ | /* Mark cmap initialized. */ | ||||
info->fb_cmsize = NCOLORS; | info->fb_cmsize = NCOLORS; | ||||
info->fb_size = info->fb_height * info->fb_stride; | info->fb_size = info->fb_height * info->fb_stride; | ||||
Show All 17 Lines |