Lines Matching refs:surface

296 static inline bool vmsvga_verify_rect(DisplaySurface *surface,  in vmsvga_verify_rect()  argument
318 if (x + w > surface_width(surface)) { in vmsvga_verify_rect()
320 surface_width(surface), in vmsvga_verify_rect()
343 if (y + h > surface_height(surface)) { in vmsvga_verify_rect()
345 surface_height(surface), in vmsvga_verify_rect()
356 DisplaySurface *surface = qemu_console_surface(s->vga.con); in vmsvga_update_rect() local
364 if (!vmsvga_verify_rect(surface, __func__, x, y, w, h)) { in vmsvga_update_rect()
368 w = surface_width(surface); in vmsvga_update_rect()
369 h = surface_height(surface); in vmsvga_update_rect()
372 bypl = surface_stride(surface); in vmsvga_update_rect()
373 width = surface_bytes_per_pixel(surface) * w; in vmsvga_update_rect()
374 start = surface_bytes_per_pixel(surface) * x + bypl * y; in vmsvga_update_rect()
376 dst = surface_data(surface) + start; in vmsvga_update_rect()
423 DisplaySurface *surface = qemu_console_surface(s->vga.con); in vmsvga_copy_rect() local
425 int bypl = surface_stride(surface); in vmsvga_copy_rect()
426 int bypp = surface_bytes_per_pixel(surface); in vmsvga_copy_rect()
431 if (!vmsvga_verify_rect(surface, "vmsvga_copy_rect/src", x0, y0, w, h)) { in vmsvga_copy_rect()
434 if (!vmsvga_verify_rect(surface, "vmsvga_copy_rect/dst", x1, y1, w, h)) { in vmsvga_copy_rect()
461 DisplaySurface *surface = qemu_console_surface(s->vga.con); in vmsvga_fill_rect() local
462 int bypl = surface_stride(surface); in vmsvga_fill_rect()
463 int width = surface_bytes_per_pixel(surface) * w; in vmsvga_fill_rect()
471 if (!vmsvga_verify_rect(surface, __func__, x, y, w, h)) { in vmsvga_fill_rect()
480 fst = s->vga.vram_ptr + surface_bytes_per_pixel(surface) * x + bypl * y; in vmsvga_fill_rect()
487 if (src - col == surface_bytes_per_pixel(surface)) { in vmsvga_fill_rect()
814 DisplaySurface *surface = qemu_console_surface(s->vga.con); in vmsvga_value_read() local
828 ret = s->new_width ? s->new_width : surface_width(surface); in vmsvga_value_read()
832 ret = s->new_height ? s->new_height : surface_height(surface); in vmsvga_value_read()
875 ret = surface_stride(surface); in vmsvga_value_read()
1123 DisplaySurface *surface = qemu_console_surface(s->vga.con); in vmsvga_check_size() local
1125 if (s->new_width != surface_width(surface) || in vmsvga_check_size()
1126 s->new_height != surface_height(surface) || in vmsvga_check_size()
1127 s->new_depth != surface_bits_per_pixel(surface)) { in vmsvga_check_size()
1132 surface = qemu_create_displaysurface_from(s->new_width, s->new_height, in vmsvga_check_size()
1135 dpy_gfx_replace_surface(s->vga.con, surface); in vmsvga_check_size()