Lines Matching refs:x

47 static bool outside(int x, int y) {  in outside()  argument
49 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
69 int gr_font_size(const GRFont* font, int* x, int* y) { in gr_font_size() argument
74 *x = font->char_width; in gr_font_size()
124 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() argument
127 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
129 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
132 (surface->width - 1 - x); in PixelAt()
134 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt()
158 void gr_text(const GRFont* font, int x, int y, const char* s, bool bold) { in gr_text() argument
168 x += overscan_offset_x; in gr_text()
173 if (outside(x, y) || outside(x + font->char_width - 1, y + font->char_height - 1)) break; in gr_text()
182 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_text()
187 x += font->char_width; in gr_text()
191 void gr_texticon(int x, int y, const GRSurface* icon) { in gr_texticon() argument
199 x += overscan_offset_x; in gr_texticon()
202 if (outside(x, y) || outside(x + icon->width - 1, y + icon->height - 1)) return; in gr_texticon()
206 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_texticon()
229 for (int x = 0; x < gr_draw->width; ++x) { in gr_clear() local
252 for (int x = x1; x < x2; ++x) { in gr_fill() local
284 for (int x = 0; x < w; x += 1) { in gr_blit() local