Lines Matching refs:width

35     .width = FONT9X16_WIDTH,
41 .width = FONT18X32_WIDTH,
95 void gfx_copyrect(gfx_surface* surface, uint x, uint y, uint width, uint height, uint x2, uint y2) { in gfx_copyrect() argument
97 if (x >= surface->width) in gfx_copyrect()
99 if (x2 >= surface->width) in gfx_copyrect()
105 if (width == 0 || height == 0) in gfx_copyrect()
109 if (x + width > surface->width) in gfx_copyrect()
110 width = surface->width - x; in gfx_copyrect()
111 if (x2 + width > surface->width) in gfx_copyrect()
112 width = surface->width - x2; in gfx_copyrect()
120 surface->copyrect(surface, x, y, width, height, x2, y2); in gfx_copyrect()
126 void gfx_fillrect(gfx_surface* surface, uint x, uint y, uint width, uint height, uint color) { in gfx_fillrect() argument
127 LTRACEF("surface %p, x %u y %u w %u h %u c %u\n", surface, x, y, width, height, color); in gfx_fillrect()
129 if (unlikely(x >= surface->width)) in gfx_fillrect()
133 if (width == 0 || height == 0) in gfx_fillrect()
137 if (x + width > surface->width) in gfx_fillrect()
138 width = surface->width - x; in gfx_fillrect()
144 surface->fillrect(surface, x, y, width, height, color); in gfx_fillrect()
151 if (unlikely(x >= surface->width)) in gfx_putpixel()
172 static void copyrect(gfx_surface* surface, uint x, uint y, uint width, uint height, uint x2, uint y… in copyrect() argument
176 uint stride_diff = surface->stride - width; in copyrect()
181 for (j = 0; j < width; j++) { in copyrect()
191 src += height * surface->stride + width; in copyrect()
192 dest += height * surface->stride + width; in copyrect()
196 for (j = 0; j < width; j++) { in copyrect()
208 static void fillrect(gfx_surface* surface, uint x, uint y, uint width, uint height, uint _color) { in fillrect() argument
210 uint stride_diff = surface->stride - width; in fillrect()
221 for (j = 0; j < width; j++) { in fillrect()
230 if (unlikely(x1 >= surface->width)) in gfx_line()
232 if (unlikely(x2 >= surface->width)) in gfx_line()
326 if (destx >= target->width) in gfx_surface_blend()
331 uint width = source->width; in gfx_surface_blend() local
332 if (destx + width > target->width) in gfx_surface_blend()
333 width = target->width - destx; in gfx_surface_blend()
344 uint dest_stride_diff = target->stride - width; in gfx_surface_blend()
345 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
347 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
351 for (j = 0; j < width; j++) { in gfx_surface_blend()
363 uint dest_stride_diff = target->stride - width; in gfx_surface_blend()
364 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
366 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
370 for (j = 0; j < width; j++) { in gfx_surface_blend()
383 uint dest_stride_diff = target->stride - width; in gfx_surface_blend()
384 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
386 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
390 for (j = 0; j < width; j++) { in gfx_surface_blend()
402 uint dest_stride_diff = target->stride - width; in gfx_surface_blend()
403 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
405 … LTRACEF("w %u h %u dstride %u sstride %u\n", width, height, dest_stride_diff, source_stride_diff); in gfx_surface_blend()
409 for (j = 0; j < width; j++) { in gfx_surface_blend()
428 unsigned fw = font->width; in putchar()
444 if (unlikely(x > (surface->width - font->width))) { in gfx_putchar()
495 gfx_surface* gfx_create_surface(void* ptr, uint width, uint height, uint stride, gfx_format format,… in gfx_create_surface() argument
499 if (gfx_init_surface(surface, ptr, width, height, stride, format, flags)) { in gfx_create_surface()
506 int gfx_init_surface(gfx_surface* surface, void* ptr, uint width, uint height, uint stride, gfx_for… in gfx_init_surface() argument
507 if ((width == 0) || (height == 0) || (stride < width)) { in gfx_init_surface()
513 surface->width = width; in gfx_init_surface()
615 …r = gfx_init_surface(surface, info->framebuffer, info->width, info->height, info->stride, info->fo… in gfx_init_surface_from_display()
645 for (x = 0; x < surface->width; x++) { in gfx_draw_pattern()
649 scaledx = x * 256 / surface->width; in gfx_draw_pattern()
673 for (x = 0; x < surface->width; x++) { in gfx_draw_pattern_white()
700 for (x = 0; x < surface->width / 3; x++) { in gfx_draw_rgb_bars()
705 for (; x < 2 * (surface->width / 3); x++) { in gfx_draw_rgb_bars()
710 for (; x < surface->width; x++) { in gfx_draw_rgb_bars()
741 printf("\twidth %u height %u stride %u\n", info.width, info.height, info.stride); in cmd_gfx()
757 for (x = 0; x < surface->width; x++) { in cmd_gfx()