Home | History | Annotate | Download | only in rasops

Lines Matching defs:ri

64 rasops1_init(struct rasops_info *ri)
67 if ((ri->ri_font->fontwidth & 7) != 0) {
68 ri->ri_ops.erasecols = rasops1_erasecols;
69 ri->ri_ops.copycols = rasops1_copycols;
70 ri->ri_do_cursor = rasops1_do_cursor;
73 switch (ri->ri_font->fontwidth) {
76 ri->ri_ops.putchar = rasops1_putchar8;
79 ri->ri_ops.putchar = rasops1_putchar16;
83 ri->ri_ops.putchar = rasops1_putchar;
94 struct rasops_info *ri = (struct rasops_info *)cookie;
95 struct wsdisplay_font *font = PICK_FONT(ri, uc);
109 if ((unsigned)row >= (unsigned)ri->ri_rows)
112 if ((unsigned)col >= (unsigned)ri->ri_cols)
120 rp = (uint32_t *)(ri->ri_bits + row * ri->ri_yscale +
122 if (ri->ri_hwbits)
123 hp = (uint32_t *)(ri->ri_hwbits + row * ri->ri_yscale +
128 bg = ATTR_BG(ri, attr);
129 fg = ATTR_FG(ri, attr);
137 fr = FONT_GLYPH(uc, font, ri);
150 if (ri->ri_hwbits) {
152 DELTA(hp, ri->ri_stride, uint32_t *);
154 DELTA(rp, ri->ri_stride, uint32_t *);
167 if (ri->ri_hwbits) {
169 DELTA(hp, ri->ri_stride, uint32_t *);
172 DELTA(rp, ri->ri_stride, uint32_t *);
178 DELTA(rp, - ri->ri_stride * ri->ri_ul.off, uint32_t *);
179 if (ri->ri_hwbits)
180 DELTA(hp, - ri->ri_stride * ri->ri_ul.off,
183 for (height = ri->ri_ul.height; height; height--) {
184 DELTA(rp, - ri->ri_stride, uint32_t *);
187 if (ri->ri_hwbits) {
188 DELTA(hp, - ri->ri_stride, uint32_t *);
209 if (ri->ri_hwbits) {
212 DELTA(hp, ri->ri_stride, uint32_t *);
215 DELTA(rp, ri->ri_stride, uint32_t *);
235 if (ri->ri_hwbits) {
238 DELTA(hp, ri->ri_stride, uint32_t *);
241 DELTA(rp, ri->ri_stride, uint32_t *);
247 DELTA(rp, - ri->ri_stride * ri->ri_ul.off, uint32_t *);
248 if (ri->ri_hwbits)
249 DELTA(hp, - ri->ri_stride * ri->ri_ul.off,
252 for (height = ri->ri_ul.height; height; height--) {
253 DELTA(rp, - ri->ri_stride, uint32_t *);
258 if (ri->ri_hwbits) {
259 DELTA(hp, - ri->ri_stride, uint32_t *);