Lines Matching defs:width
217 udl_cmd_add_buf(struct udl_softc *sc, uint16_t *buf, int width)
220 memcpy(sc->sc_cmd_buf, buf, width * 2);
221 sc->sc_cmd_buf += width * 2;
225 endp = buf + width;
583 wdf->width = sc->sc_width;
977 int x, y, width, height;
990 width = ri->ri_font->fontwidth;
994 udl_copy_rect(sc, x, y, 0, sc->sc_offscreen, width, height);
997 udl_fill_rect(sc, 0xffff, x, y, width, 1);
999 udl_fill_rect(sc, 0xffff, x + width - 1, y + 1, 1, height - 2);
1000 udl_fill_rect(sc, 0xffff, x, y + height - 1, width, 1);
1013 int fg, bg, underline, x, y, width, height;
1021 width = ri->ri_font->fontwidth;
1029 udl_fill_rect(sc, rgb16[0], x, y, width, height);
1036 udl_fill_rect(sc, rgb16[1], x, y + height - 1, width, 1);
1048 int sx, dx, y, width, height;
1053 width = num * ri->ri_font->fontwidth;
1057 udl_copy_rect(sc, sx, y, 0, sc->sc_offscreen, width, height);
1060 udl_copy_rect(sc, 0, sc->sc_offscreen, dx, y, width, height);
1072 int fg, bg, x, y, width, height;
1079 width = num * ri->ri_font->fontwidth;
1082 udl_fill_rect(sc, rgb16, x, y, width, height);
1093 int sy, ey, dy, width, height;
1095 width = ri->ri_emuwidth;
1104 udl_copy_rect(sc, 0, sy, 0, dy, width, height);
1116 udl_copy_rect(sc, 0, sy, 0, dy, width, height);
1130 int fg, bg, y, width, height;
1136 width = ri->ri_emuwidth;
1139 udl_fill_rect(sc, rgb16, 0, y, width, height);
1149 int x, y, width, height;
1153 width = ri->ri_font->fontwidth;
1157 udl_copy_rect(sc, 0, sc->sc_offscreen, x, y, width, height);
1203 udl_copy_rect(struct udl_softc *sc, int sx, int sy, int dx, int dy, int width,
1212 while (width > 0) {
1217 if (width >= UDL_CMD_WIDTH_MAX)
1220 width_cur = width;
1230 width -= width_cur;
1235 udl_fill_rect(struct udl_softc *sc, uint16_t rgb16, int x, int y, int width,
1243 while (width > 0) {
1247 if (width >= UDL_CMD_WIDTH_MAX)
1250 width_cur = width;
1258 width -= width_cur;
1266 int sbase, soff, ebase, eoff, x, y, width, width_cur, height;
1270 width = d->x2 - d->x1;
1275 while (width > 0) {
1279 if (width >= UDL_CMD_WIDTH_MAX)
1282 width_cur = width;
1291 width -= width_cur;
1300 int soff, eoff, x, y, width, height;
1304 width = d->x2 - d->x1;
1314 width);
1323 udl_copy_line(struct udl_softc *sc, int soff, int doff, int width)
1331 udl_cmd_add_4(sc, ((doff * 2) << 8) | (width & 0xff));
1337 udl_fill_line(struct udl_softc *sc, uint16_t rgb16, int off, int width)
1345 udl_cmd_add_4(sc, ((off * 2) << 8) | (width & 0xff));
1347 udl_cmd_add_1(sc, width);
1352 udl_draw_line(struct udl_softc *sc, uint16_t *buf, int off, int width)
1356 (UDL_CMD_BUFSIZE(sc) + UDL_CMD_DRAW_SIZE(width) + 2) >
1361 udl_cmd_add_4(sc, ((off * 2) << 8) | (width & 0xff));
1363 udl_cmd_add_buf(sc, buf, width);
1368 udl_cmd_add_buf_comp(struct udl_softc *sc, uint16_t *buf, int width)
1378 if (width >= UDL_CMD_WIDTH_MAX)
1381 endp = buf + width;
1439 udl_draw_line_comp(struct udl_softc *sc, uint16_t *buf, int off, int width)
1444 while (width > 0) {
1468 width_cur = udl_cmd_add_buf_comp(sc, buf, width);
1473 width -= width_cur;