Lines Matching refs:y

81 void gfx_copyrect(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint y2) {  in gfx_copyrect()  argument
87 if (y >= surface->height) in gfx_copyrect()
101 if (y + height > surface->height) in gfx_copyrect()
102 height = surface->height - y; in gfx_copyrect()
106 surface->copyrect(surface, x, y, width, height, x2, y2); in gfx_copyrect()
112 void gfx_fillrect(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in gfx_fillrect() argument
113 LTRACEF("surface %p, x %u y %u w %u h %u c %u\n", surface, x, y, width, height, color); in gfx_fillrect()
117 if (y >= surface->height) in gfx_fillrect()
127 if (y + height > surface->height) in gfx_fillrect()
128 height = surface->height - y; in gfx_fillrect()
130 surface->fillrect(surface, x, y, width, height, color); in gfx_fillrect()
136 void gfx_putpixel(gfx_surface *surface, uint x, uint y, uint color) { in gfx_putpixel() argument
139 if (y >= surface->height) in gfx_putpixel()
142 surface->putpixel(surface, x, y, color); in gfx_putpixel()
145 static void putpixel16(gfx_surface *surface, uint x, uint y, uint color) { in putpixel16() argument
146 uint16_t *dest = &((uint16_t *)surface->ptr)[x + y * surface->stride]; in putpixel16()
152 static void putpixel32(gfx_surface *surface, uint x, uint y, uint color) { in putpixel32() argument
153 uint32_t *dest = &((uint32_t *)surface->ptr)[x + y * surface->stride]; in putpixel32()
158 static void putpixel8(gfx_surface *surface, uint x, uint y, uint color) { in putpixel8() argument
159 uint8_t *dest = &((uint8_t *)surface->ptr)[x + y * surface->stride]; in putpixel8()
165 static void copyrect8(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint … in copyrect8() argument
167 const uint8_t *src = &((const uint8_t *)surface->ptr)[x + y * surface->stride]; in copyrect8()
200 static void fillrect8(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect8() argument
201 uint8_t *dest = &((uint8_t *)surface->ptr)[x + y * surface->stride]; in fillrect8()
216 static void copyrect16(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect16() argument
218 const uint16_t *src = &((const uint16_t *)surface->ptr)[x + y * surface->stride]; in copyrect16()
251 static void fillrect16(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect16() argument
252 uint16_t *dest = &((uint16_t *)surface->ptr)[x + y * surface->stride]; in fillrect16()
267 static void copyrect32(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect32() argument
269 const uint32_t *src = &((const uint32_t *)surface->ptr)[x + y * surface->stride]; in copyrect32()
302 static void fillrect32(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect32() argument
303 uint32_t *dest = &((uint32_t *)surface->ptr)[x + y * surface->stride]; in fillrect32()
337 uint y = dxabs >> 1; in gfx_line() local
345 y += dyabs; in gfx_line()
346 if (y >= dxabs) { in gfx_line()
347 y -= dxabs; in gfx_line()
682 uint x, y; in gfx_draw_pattern() local
683 for (y = 0; y < surface->height; y++) { in gfx_draw_pattern()
689 scaledy = y * 256 / surface->height; in gfx_draw_pattern()
691 …gfx_putpixel(surface, x, y, (0xff << 24) | (scaledx * scaledy) << 16 | (scaledx >> 1) << 8 | scale… in gfx_draw_pattern()
710 uint x, y; in gfx_draw_pattern_white() local
711 for (y = 0; y < surface->height; y++) { in gfx_draw_pattern_white()
713 gfx_putpixel(surface, x, y, 0xFFFFFFFF); in gfx_draw_pattern_white()
732 uint32_t color,iter,x,y; in gfx_draw_mandelbrot() local
738 for (y = 0; y < surface->height; y++) { in gfx_draw_mandelbrot()
759 gfx_putpixel(surface, x, y, 0xff << 24 | color); in gfx_draw_mandelbrot()
761 if (y > 0) { in gfx_draw_mandelbrot()
762 gfx_flush_rows(surface, y - 1, y); in gfx_draw_mandelbrot()
772 uint x, y; in gfx_draw_rgb_bars() local
777 for (y = 0; y < surface->height; y++) { in gfx_draw_rgb_bars()
780 color = y*100 / step; in gfx_draw_rgb_bars()
781 gfx_putpixel(surface, x, y, 0xff << 24 | color << 16); in gfx_draw_rgb_bars()
785 color = y*100 / step; in gfx_draw_rgb_bars()
786 gfx_putpixel(surface, x, y, 0xff << 24 | color << 8); in gfx_draw_rgb_bars()
790 color = y*100 / step; in gfx_draw_rgb_bars()
791 gfx_putpixel(surface, x, y, 0xff << 24 | color); in gfx_draw_rgb_bars()
829 uint x, y; in cmd_gfx() local
831 for (y = 0; y < surface->height; y++) { in cmd_gfx()
834 … gfx_putpixel(surface, x, y, (0xff << 24) | (argv[2].i << 16) | (argv[3].i << 8) | argv[4].i); in cmd_gfx()