Lines Matching full:scp

64 static void			gfb_nop(scr_stat *scp);
114 gfb_nop(scr_stat *scp) in gfb_nop() argument
121 gfb_clear(scr_stat *scp, int c, int attr) in gfb_clear() argument
123 vidd_clear(scp->sc->adp); in gfb_clear()
127 gfb_border(scr_stat *scp, int color) in gfb_border() argument
129 vidd_set_border(scp->sc->adp, color); in gfb_border()
133 gfb_draw(scr_stat *scp, int from, int count, int flip) in gfb_draw() argument
140 adp = scp->sc->adp; in gfb_draw()
146 if (from + count > scp->xsize*scp->ysize) { in gfb_draw()
168 (u_int16_t *)sc_vtb_pointer(&scp->vtb, from), count); in gfb_draw()
183 c = sc_vtb_getc(&scp->vtb, from); in gfb_draw()
184 a = sc_vtb_geta(&scp->vtb, from) >> 8; in gfb_draw()
190 (u_int16_t *)sc_vtb_pointer(&scp->vtb, from), in gfb_draw()
197 gfb_cursor_shape(scr_stat *scp, int base, int height, int blink) in gfb_cursor_shape() argument
199 if (base < 0 || base >= scp->font_size) in gfb_cursor_shape()
203 scp->cursor_base = base; in gfb_cursor_shape()
204 scp->cursor_height = height; in gfb_cursor_shape()
206 vidd_set_hw_cursor_shape(scp->sc->adp, base, height, scp->font_size, in gfb_cursor_shape()
214 gfb_cursor(scr_stat *scp, int at, int blink, int on, int flip) in gfb_cursor() argument
219 if (scp->curs_attr.height <= 0) /* the text cursor is disabled */ in gfb_cursor()
222 adp = scp->sc->adp; in gfb_cursor()
224 scp->status |= VR_CURSOR_BLINK; in gfb_cursor()
226 scp->status |= VR_CURSOR_ON; in gfb_cursor()
227 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor()
229 if (scp->status & VR_CURSOR_ON) in gfb_cursor()
231 scp->status &= ~VR_CURSOR_ON; in gfb_cursor()
234 scp->status &= ~VR_CURSOR_BLINK; in gfb_cursor()
236 scp->status |= VR_CURSOR_ON; in gfb_cursor()
237 vidd_putc(scp->sc->adp, scp->cursor_oldpos, in gfb_cursor()
238 sc_vtb_getc(&scp->vtb, scp->cursor_oldpos), in gfb_cursor()
239 sc_vtb_geta(&scp->vtb, scp->cursor_oldpos) >> 8); in gfb_cursor()
240 a = sc_vtb_geta(&scp->vtb, at) >> 8; in gfb_cursor()
241 c = sc_vtb_getc(&scp->vtb, at); in gfb_cursor()
242 vidd_putc(scp->sc->adp, at, c, in gfb_cursor()
245 if (scp->status & VR_CURSOR_ON) in gfb_cursor()
246 vidd_putc(scp->sc->adp, at, in gfb_cursor()
247 sc_vtb_getc(&scp->vtb, at), in gfb_cursor()
248 sc_vtb_geta(&scp->vtb, at) >> 8); in gfb_cursor()
249 scp->status &= ~VR_CURSOR_ON; in gfb_cursor()
255 gfb_cursor(scr_stat *scp, int at, int blink, int on, int flip) in gfb_cursor() argument
259 adp = scp->sc->adp; in gfb_cursor()
260 if (scp->curs_attr.height <= 0) in gfb_cursor()
266 scp->status |= VR_CURSOR_ON; in gfb_cursor()
267 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor()
270 scp->status ^= VR_CURSOR_ON; in gfb_cursor()
271 if(scp->status & VR_CURSOR_ON) in gfb_cursor()
272 vidd_set_hw_cursor(adp, at%scp->xsize, in gfb_cursor()
273 at/scp->xsize); in gfb_cursor()
278 if (scp->status & VR_CURSOR_ON) in gfb_cursor()
279 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor()
280 scp->status &= ~VR_CURSOR_ON; in gfb_cursor()
283 scp->status |= VR_CURSOR_BLINK; in gfb_cursor()
285 scp->status &= ~VR_CURSOR_BLINK; in gfb_cursor()
290 gfb_blink(scr_stat *scp, int at, int flip) in gfb_blink() argument
292 if (!(scp->status & VR_CURSOR_BLINK)) in gfb_blink()
297 scp->status ^= VR_CURSOR_ON; in gfb_blink()
298 gfb_cursor(scp, at, scp->status & VR_CURSOR_BLINK, in gfb_blink()
299 scp->status & VR_CURSOR_ON, flip); in gfb_blink()
305 gfb_mouse(scr_stat *scp, int x, int y, int on) in gfb_mouse() argument
308 vidd_putm(scp->sc->adp, x, y, mouse_pointer, in gfb_mouse()