Lines Matching refs:y
58 static bool outside(int x, int y) in outside() argument
60 return x < 0 || x >= gr_draw->width || y < 0 || y >= gr_draw->height; in outside()
68 void gr_font_size(int *x, int *y) in gr_font_size() argument
71 *y = gr_font->cheight; in gr_font_size()
106 void gr_text(int x, int y, const char *s, bool bold) in gr_text() argument
115 y += overscan_offset_y; in gr_text()
119 if (outside(x, y) || outside(x+font->cwidth-1, y+font->cheight-1)) break; in gr_text()
127 unsigned char* dst_p = gr_draw->data + y*gr_draw->row_bytes + x*gr_draw->pixel_bytes; in gr_text()
137 void gr_texticon(int x, int y, GRSurface* icon) { in gr_texticon() argument
146 y += overscan_offset_y; in gr_texticon()
148 if (outside(x, y) || outside(x+icon->width-1, y+icon->height-1)) return; in gr_texticon()
151 unsigned char* dst_p = gr_draw->data + y*gr_draw->row_bytes + x*gr_draw->pixel_bytes; in gr_texticon()
179 for (int y = 0; y < gr_draw->height; ++y) { in gr_clear() local
203 int x, y; in gr_fill() local
204 for (y = y1; y < y2; ++y) { in gr_fill()
215 int x, y; in gr_fill() local
216 for (y = y1; y < y2; ++y) { in gr_fill()