Lines Matching refs:w
41 size_t w; member
54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawTwoPixels() argument
57 if (x>=0 && x<ssize_t(buf->w)) { in drawTwoPixels()
60 ssize_t W(w); in drawTwoPixels()
61 if ((x+W)>=0 && (x+W)<ssize_t(buf->w)) { in drawTwoPixels()
67 void drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawHLine() argument
69 ssize_t W(w); in drawHLine()
74 if (x+w > buf->w) { in drawHLine()
75 W = buf->w - x; in drawHLine()
84 void drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) { in drawRect() argument
85 ssize_t W(w), H(h); in drawRect()
87 w += x; in drawRect()
94 if (x+w > buf->w) W = buf->w - x; in drawRect()
229 framebuffer.w = vi.xres; in main()
263 drawRect(&framebuffer, 0x400000, framebuffer.w-2, 0, 2, framebuffer.h); in main()
273 drawHLine(&framebuffer, 0x808080, 0, 1000, framebuffer.w); in main()
289 drawRect(&framebuffer, 0x004000, framebuffer.w-2, 0, 2, framebuffer.h); in main()