Lines Matching defs:ri

98 	struct rasops_info *ri = cookie;
105 scanspan = ri->ri_stride;
106 y = ri->ri_font->fontheight * row;
107 startx = ri->ri_font->fontwidth * startcol;
108 height = ri->ri_font->fontheight;
109 fb = (u_int8_t *)ri->ri_font->data +
110 (uc - ri->ri_font->firstchar) * ri->ri_fontscale;
111 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
114 p = (u_int8_t *)ri->ri_bits + y * scanspan + ((startx / 32) * 4);
116 width = ri->ri_font->fontwidth + align;
123 for (i = ri->ri_font->stride; i != 0; i--)
125 glyph <<= (4 - ri->ri_font->stride) * NBBY;
137 for (i = ri->ri_font->stride; i != 0; i--)
139 glyph <<= (4 - ri->ri_font->stride) * NBBY;
163 struct rasops_info *ri = cookie;
172 scanspan = ri->ri_stride;
173 y = ri->ri_font->fontheight * row;
174 startx = ri->ri_font->fontwidth * startcol;
175 height = ri->ri_font->fontheight;
176 fb = (u_int8_t *)ri->ri_font->data +
177 (uc - ri->ri_font->firstchar) * ri->ri_fontscale;
178 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
188 p = (u_int8_t *)ri->ri_bits + y * scanspan + ((startx / 32) * 4);
190 width = ri->ri_font->fontwidth + align;
204 for (i = ri->ri_font->stride; i != 0; i--)
206 glyph <<= (4 - ri->ri_font->stride) * NBBY;
235 for (i = ri->ri_font->stride; i != 0; i--)
237 glyph <<= (4 - ri->ri_font->stride) * NBBY;
293 struct rasops_info *ri = cookie;
297 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
299 snum = num * ri->ri_font->fontwidth;
300 scol = col * ri->ri_font->fontwidth + ri->ri_xorigin;
301 srow = row * ri->ri_font->fontheight + ri->ri_yorigin;
307 if ((*om_windowmove)(ri, scol, srow, scol, srow, snum,
308 ri->ri_font->fontheight, RR_CLEAR, 0xff ^ bg) != 0)
317 struct rasops_info *ri = cookie;
322 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
325 if (num == ri->ri_rows && (ri->ri_flg & RI_FULLCLEAR)) {
326 rc = (*om_windowmove)(ri, 0, 0, 0, 0, ri->ri_width,
327 ri->ri_height, RR_CLEAR, bg);
329 srow = row * ri->ri_font->fontheight + ri->ri_yorigin;
330 snum = num * ri->ri_font->fontheight;
331 rc = (*om_windowmove)(ri, ri->ri_xorigin, srow, ri->ri_xorigin,
332 srow, ri->ri_emuwidth, snum, RR_CLEAR, bg);
343 struct rasops_info *ri = cookie;
345 n *= ri->ri_font->fontheight;
346 src *= ri->ri_font->fontheight;
347 dst *= ri->ri_font->fontheight;
349 (*om_windowmove)(ri, ri->ri_xorigin, ri->ri_yorigin + src,
350 ri->ri_xorigin, ri->ri_yorigin + dst,
351 ri->ri_emuwidth, n, RR_COPY, 0xff);
359 struct rasops_info *ri = cookie;
361 n *= ri->ri_font->fontwidth;
362 src *= ri->ri_font->fontwidth;
363 dst *= ri->ri_font->fontwidth;
364 row *= ri->ri_font->fontheight;
366 (*om_windowmove)(ri, ri->ri_xorigin + src, ri->ri_yorigin + row,
367 ri->ri_xorigin + dst, ri->ri_yorigin + row,
368 n, ri->ri_font->fontheight, RR_COPY, 0xff);
380 struct rasops_info *ri = cookie;
387 if ((ri->ri_flg & RI_CURSOR) == 0)
390 row = ri->ri_crow;
391 col = ri->ri_ccol;
394 ri->ri_crow = row;
395 ri->ri_ccol = col;
398 scanspan = ri->ri_stride;
399 y = ri->ri_font->fontheight * row;
400 startx = ri->ri_font->fontwidth * col;
401 height = ri->ri_font->fontheight;
403 p = (u_int8_t *)ri->ri_bits + y * scanspan + ((startx / 32) * 4);
405 width = ri->ri_font->fontwidth + align;
430 ri->ri_flg ^= RI_CURSOR;
442 struct rasops_info *ri = cookie;
449 if ((ri->ri_flg & RI_CURSOR) == 0)
452 row = ri->ri_crow;
453 col = ri->ri_ccol;
456 ri->ri_crow = row;
457 ri->ri_ccol = col;
460 scanspan = ri->ri_stride;
461 y = ri->ri_font->fontheight * row;
462 startx = ri->ri_font->fontwidth * col;
463 height = ri->ri_font->fontheight;
465 p = (u_int8_t *)ri->ri_bits + y * scanspan + ((startx / 32) * 4);
467 width = ri->ri_font->fontwidth + align;
509 ri->ri_flg ^= RI_CURSOR;
519 setup_omrasops1(struct rasops_info *ri)
522 ri->ri_ops.cursor = om1_cursor;
523 ri->ri_ops.putchar = om1_putchar;
525 = ri->ri_caps & ~WSSCREEN_UNDERLINE;
526 ri->ri_ops.pack_attr = rasops_pack_mattr;
530 setup_omrasops4(struct rasops_info *ri)
533 ri->ri_ops.cursor = om4_cursor;
534 ri->ri_ops.putchar = om4_putchar;
538 * Since we set ri->ri_depth == 1, rasops_init() set
542 ri->ri_ops.pack_attr = rasops_pack_cattr;