Lines Matching refs:rc

60           struct rcons *rc = id;  in rcons_cursor()  local
66 if ((rc->rc_bits & RC_CURSOR) == 0) in rcons_cursor()
69 row = *rc->rc_crowp; in rcons_cursor()
70 col = *rc->rc_ccolp; in rcons_cursor()
73 *rc->rc_crowp = row; in rcons_cursor()
74 *rc->rc_ccolp = col; in rcons_cursor()
77 x = col * rc->rc_font->width + rc->rc_xorigin; in rcons_cursor()
78 y = row * rc->rc_font->height + rc->rc_yorigin; in rcons_cursor()
80 raster_op(rc->rc_sp, x, y, in rcons_cursor()
83 rc->rc_font->chars[(int)' '].r->width, in rcons_cursor()
84 rc->rc_font->chars[(int)' '].r->height, in rcons_cursor()
86 rc->rc_font->width, rc->rc_font->height, in rcons_cursor()
91 rc->rc_bits ^= RC_CURSOR; in rcons_cursor()
112 struct rcons *rc = id; in rcons_putchar() local
116 x = col * rc->rc_font->width + rc->rc_xorigin; in rcons_putchar()
117 y = row * rc->rc_font->height + rc->rc_font_ascent + rc->rc_yorigin; in rcons_putchar()
120 if ((attr != 0) ^ ((rc->rc_bits & RC_INVERT) != 0)) in rcons_putchar()
123 raster_textn(rc->rc_sp, x, y, op, rc->rc_font, &help, 1); in rcons_putchar()
132 struct rcons *rc = id; in rcons_invert() local
134 if (((rc->rc_bits & RC_INVERT) != 0) ^ inverted) { in rcons_invert()
136 raster_op(rc->rc_sp, 0, 0, rc->rc_sp->width, rc->rc_sp->height, in rcons_invert()
140 rc->rc_bits ^= RC_INVERT; in rcons_invert()
150 struct rcons *rc = id; in rcons_copycols() local
153 y = rc->rc_yorigin + rc->rc_font->height * row; in rcons_copycols()
154 srcx = rc->rc_xorigin + rc->rc_font->width * srccol; in rcons_copycols()
155 dstx = rc->rc_xorigin + rc->rc_font->width * dstcol; in rcons_copycols()
156 nx = rc->rc_font->width * ncols; in rcons_copycols()
158 raster_op(rc->rc_sp, dstx, y, in rcons_copycols()
159 nx, rc->rc_font->height, RAS_SRC, in rcons_copycols()
160 rc->rc_sp, srcx, y); in rcons_copycols()
169 struct rcons *rc = id; in rcons_erasecols() local
172 y = rc->rc_yorigin + rc->rc_font->height * row; in rcons_erasecols()
173 startx = rc->rc_xorigin + rc->rc_font->width * startcol; in rcons_erasecols()
174 nx = rc->rc_font->width * ncols; in rcons_erasecols()
177 if ((fillattr != 0) ^ ((rc->rc_bits & RC_INVERT) != 0)) in rcons_erasecols()
179 raster_op(rc->rc_sp, startx, y, in rcons_erasecols()
180 nx, rc->rc_font->height, op, in rcons_erasecols()
190 struct rcons *rc = id; in rcons_copyrows() local
193 srcy = rc->rc_yorigin + rc->rc_font->height * srcrow; in rcons_copyrows()
194 dsty = rc->rc_yorigin + rc->rc_font->height * dstrow; in rcons_copyrows()
195 ny = rc->rc_font->height * nrows; in rcons_copyrows()
197 raster_op(rc->rc_sp, rc->rc_xorigin, dsty, in rcons_copyrows()
198 rc->rc_raswidth, ny, RAS_SRC, in rcons_copyrows()
199 rc->rc_sp, rc->rc_xorigin, srcy); in rcons_copyrows()
208 struct rcons *rc = id; in rcons_eraserows() local
211 starty = rc->rc_yorigin + rc->rc_font->height * startrow; in rcons_eraserows()
212 ny = rc->rc_font->height * nrows; in rcons_eraserows()
215 if ((fillattr != 0) ^ ((rc->rc_bits & RC_INVERT) != 0)) in rcons_eraserows()
217 raster_op(rc->rc_sp, rc->rc_xorigin, starty, in rcons_eraserows()
218 rc->rc_raswidth, ny, op, in rcons_eraserows()