Lines Matching refs:height

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()
89 if (y2 >= surface->height) in gfx_copyrect()
91 if (width == 0 || height == 0) in gfx_copyrect()
101 if (y + height > surface->height) in gfx_copyrect()
102 height = surface->height - y; in gfx_copyrect()
103 if (y2 + height > surface->height) in gfx_copyrect()
104 height = surface->height - y2; 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()
119 if (width == 0 || height == 0) 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()
139 if (y >= surface->height) in gfx_putpixel()
165 static void copyrect8(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint … in copyrect8() argument
173 for (i=0; i < height; i++) { in copyrect8()
184 src += height * surface->stride + width; in copyrect8()
185 dest += height * surface->stride + width; in copyrect8()
188 for (i=0; i < height; i++) { in copyrect8()
200 static void fillrect8(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect8() argument
207 for (i=0; i < height; i++) { in fillrect8()
216 static void copyrect16(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect16() argument
224 for (i=0; i < height; i++) { in copyrect16()
235 src += height * surface->stride + width; in copyrect16()
236 dest += height * surface->stride + width; in copyrect16()
239 for (i=0; i < height; i++) { in copyrect16()
251 static void fillrect16(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect16() argument
258 for (i=0; i < height; i++) { in fillrect16()
267 static void copyrect32(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect32() argument
275 for (i=0; i < height; i++) { in copyrect32()
286 src += height * surface->stride + width; in copyrect32()
287 dest += height * surface->stride + width; in copyrect32()
290 for (i=0; i < height; i++) { in copyrect32()
302 static void fillrect32(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect32() argument
307 for (i=0; i < height; i++) { in fillrect32()
322 if (y1 >= surface->height) in gfx_line()
324 if (y2 >= surface->height) in gfx_line()
415 if (desty >= target->height) in gfx_surface_blend()
422 uint height = source->height; in gfx_surface_blend() local
423 if (desty + height > target->height) in gfx_surface_blend()
424 height = target->height - desty; in gfx_surface_blend()
434 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
437 for (i=0; i < height; i++) { in gfx_surface_blend()
453 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
456 for (i=0; i < height; i++) { in gfx_surface_blend()
473 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
476 for (i=0; i < height; i++) { in gfx_surface_blend()
492 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
495 for (i=0; i < height; i++) { in gfx_surface_blend()
516 surface->flush(0, surface->height-1); in gfx_flush()
529 if (start >= surface->height) in gfx_flush_rows()
531 if (end >= surface->height) in gfx_flush_rows()
532 end = surface->height - 1; in gfx_flush_rows()
545 gfx_surface *gfx_create_surface(void *ptr, uint width, uint height, uint stride, gfx_format format)… in gfx_create_surface() argument
547 DEBUG_ASSERT(height > 0); in gfx_create_surface()
556 surface->height = height; in gfx_create_surface()
568 surface->len = (surface->height * surface->stride * surface->pixelsize); in gfx_create_surface()
577 surface->len = (surface->height * surface->stride * surface->pixelsize); in gfx_create_surface()
585 surface->len = (surface->height * surface->stride * surface->pixelsize); in gfx_create_surface()
593 surface->len = (surface->height * surface->stride * surface->pixelsize); in gfx_create_surface()
601 surface->len = (surface->height * surface->stride * surface->pixelsize); in gfx_create_surface()
653 …surface = gfx_create_surface(fb->image.pixels, fb->image.width, fb->image.height, fb->image.stride… in gfx_create_surface_from_display()
683 for (y = 0; y < surface->height; y++) { in gfx_draw_pattern()
689 scaledy = y * 256 / surface->height; in gfx_draw_pattern()
711 for (y = 0; y < surface->height; y++) { in gfx_draw_pattern_white()
735 dy= 3.0f/((float)surface->height); in gfx_draw_mandelbrot()
738 for (y = 0; y < surface->height; y++) { in gfx_draw_mandelbrot()
774 uint step = surface->height*100 / 256; in gfx_draw_rgb_bars()
777 for (y = 0; y < surface->height; y++) { in gfx_draw_rgb_bars()
822 … printf("\twidth %u height %u stride %u\n", fb.image.width, fb.image.height, fb.image.stride); in cmd_gfx()
831 for (y = 0; y < surface->height; y++) { in cmd_gfx()