Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/hw/fb/vt_fb.c
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | vt_fb_bitblt_text(struct vt_device *vd, const struct vt_window *vw, | ||||
for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { | for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { | ||||
for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; | for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; | ||||
++col) { | ++col) { | ||||
x = col * vf->vf_width + | x = col * vf->vf_width + | ||||
vw->vw_draw_area.tr_begin.tp_col; | vw->vw_draw_area.tr_begin.tp_col; | ||||
y = row * vf->vf_height + | y = row * vf->vf_height + | ||||
vw->vw_draw_area.tr_begin.tp_row; | vw->vw_draw_area.tr_begin.tp_row; | ||||
c = VTBUF_GET_FIELD(&vw->vw_buf, row, col); | vtbuf_getchar(&vw->vw_buf, row, col, &c, &fg, &bg); | ||||
pattern = vtfont_lookup(vf, c); | pattern = vtfont_lookup(vf, c); | ||||
vt_determine_colors(c, | |||||
VTBUF_ISCURSOR(&vw->vw_buf, row, col), &fg, &bg); | |||||
vt_fb_bitblt_bitmap(vd, vw, | vt_fb_bitblt_bitmap(vd, vw, | ||||
pattern, NULL, vf->vf_width, vf->vf_height, | pattern, NULL, vf->vf_width, vf->vf_height, | ||||
x, y, fg, bg); | x, y, fg, bg); | ||||
} | } | ||||
} | } | ||||
#ifndef SC_NO_CUTPASTE | #ifndef SC_NO_CUTPASTE | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |