Lines Matching refs:x2
81 void gfx_copyrect(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint y2) { in gfx_copyrect() argument
85 if (x2 >= surface->width) in gfx_copyrect()
97 if (x2 + width > surface->width) in gfx_copyrect()
98 width = surface->width - x2; in gfx_copyrect()
106 surface->copyrect(surface, x, y, width, height, x2, y2); in gfx_copyrect()
165 static void copyrect8(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint … in copyrect8() argument
168 uint8_t *dest = &((uint8_t *)surface->ptr)[x2 + y2 * surface->stride]; in copyrect8()
216 static void copyrect16(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect16() argument
219 uint16_t *dest = &((uint16_t *)surface->ptr)[x2 + y2 * surface->stride]; in copyrect16()
267 static void copyrect32(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect32() argument
270 uint32_t *dest = &((uint32_t *)surface->ptr)[x2 + y2 * surface->stride]; in copyrect32()
316 void gfx_line(gfx_surface *surface, uint x1, uint y1, uint x2, uint y2, uint color) { in gfx_line() argument
319 if (unlikely(x2 >= surface->width)) in gfx_line()
327 int dx = x2 - x1; in gfx_line()