Lines Matching refs:y

46 static bool outside(int x, int y) {  in outside()  argument
48 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
49 y >= (swapped ? gr_draw->width : gr_draw->height); in outside()
68 int gr_font_size(const GRFont* font, int* x, int* y) { in gr_font_size() argument
74 *y = font->char_height; in gr_font_size()
123 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() argument
126 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
128 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
130 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt()
134 y; in PixelAt()
157 void gr_text(const GRFont* font, int x, int y, const char* s, bool bold) { in gr_text() argument
168 y += overscan_offset_y; in gr_text()
172 if (outside(x, y) || outside(x + font->char_width - 1, y + font->char_height - 1)) break; in gr_text()
181 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_text()
190 void gr_texticon(int x, int y, const GRSurface* icon) { in gr_texticon() argument
199 y += overscan_offset_y; in gr_texticon()
201 if (outside(x, y) || outside(x + icon->width - 1, y + icon->height - 1)) return; in gr_texticon()
205 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_texticon()
227 for (int y = 0; y < gr_draw->height; ++y) { in gr_clear() local
249 for (int y = y1; y < y2; ++y) { in gr_fill() local
280 for (int y = 0; y < h; y += 1) { in gr_blit() local