Lines Matching refs:width

50     int width;  member
128 int width, int height, pixman_color_t color) in qemu_console_fill_rect() argument
132 .x = posx, .y = posy, .width = width, .height = height in qemu_console_fill_rect()
198 if (x >= s->width) { in console_show_cursor()
199 x = s->width - 1; in console_show_cursor()
207 c = &s->cells[y1 * s->width + x]; in console_show_cursor()
228 s->text_x[1] = s->width - 1; in console_refresh()
236 c = s->cells + y1 * s->width; in console_refresh()
237 for (x = 0; x < s->width; x++) { in console_refresh()
354 src = (s->y_base + s->text_y[0]) * s->width; in text_console_update()
355 chardata += s->text_y[0] * s->width; in text_console_update()
357 for (j = 0; j < s->width; j++, src++) { in text_console_update()
366 s->text_x[0] = s->width; in text_console_update()
387 if (w == t->width && h == t->height) { in text_console_resize()
391 last_width = t->width; in text_console_resize()
392 t->width = w; in text_console_resize()
395 w1 = MIN(t->width, last_width); in text_console_resize()
397 cells = g_new(TextCell, t->width * t->total_height + 1); in text_console_resize()
399 c = &cells[y * t->width]; in text_console_resize()
406 for (x = w1; x < t->width; x++) { in text_console_resize()
435 c = &s->cells[y1 * s->width]; in vc_put_lf()
436 for(x = 0; x < s->width; x++) { in vc_put_lf()
444 s->text_x[1] = s->width - 1; in vc_put_lf()
448 s->width * FONT_WIDTH, in vc_put_lf()
451 s->width * FONT_WIDTH, FONT_HEIGHT, in vc_put_lf()
455 s->update_x1 = s->width * FONT_WIDTH; in vc_put_lf()
575 if (x >= s->width) { in vc_update_xy()
576 x = s->width - 1; in vc_update_xy()
578 c = &s->cells[y1 * s->width + x]; in vc_update_xy()
589 if (x >= s->width) { in vc_clear_xy()
590 x = s->width - 1; in vc_clear_xy()
592 TextCell *c = &s->cells[y1 * s->width + x]; in vc_clear_xy()
603 if (s->x >= s->width) { in vc_put_one()
609 c = &s->cells[y1 * s->width + s->x]; in vc_put_one()
638 if (x >= s->width) { in vc_set_cursor()
639 x = s->width - 1; in vc_set_cursor()
667 if (s->x + (8 - (s->x % 8)) > s->width) { in vc_putchar()
762 for (x = 0; x < s->width; x++) { in vc_putchar()
773 for (x = 0; x < s->width; x++) { in vc_putchar()
784 for (x = 0; x < s->width; x++) { in vc_putchar()
795 for(x = s->x; x < s->width; x++) { in vc_putchar()
801 for (x = 0; x <= s->x && x < s->width; x++) { in vc_putchar()
807 for(x = 0; x < s->width; x++) { in vc_putchar()
860 s->update_x0 = s->width * FONT_WIDTH; in DECLARE_INSTANCE_CHECKER()
963 dpy_text_resize(QEMU_CONSOLE(c), c->width, c->height); in qemu_text_console_update_size()
974 unsigned width = 0; in vc_chr_open() local
978 width = vc->width; in vc_chr_open()
980 width = vc->cols * FONT_WIDTH; in vc_chr_open()
989 trace_console_txt_new(width, height); in vc_chr_open()
990 if (width == 0 || height == 0) { in vc_chr_open()
992 width = 80 * FONT_WIDTH; in vc_chr_open()
998 dpy_gfx_replace_surface(QEMU_CONSOLE(s), qemu_create_displaysurface(width, height)); in vc_chr_open()
1032 vc->width = val; in vc_chr_parse()