Lines Matching refs:width
60 return x < 0 || x >= gr_draw->width || y < 0 || y >= gr_draw->height; in outside()
76 int width, int height) in text_blend() argument
81 for (int i = 0; i < width; ++i) { in text_blend()
148 if (outside(x, y) || outside(x+icon->width-1, y+icon->height-1)) return; in gr_texticon()
155 icon->width, icon->height); in gr_texticon()
180 for (int x = 0; x < gr_draw->width; ++x) { in gr_clear()
186 px += gr_draw->row_bytes - (gr_draw->width * gr_draw->pixel_bytes); in gr_clear()
260 return surface->width; in gr_get_width()
279 gr_font->cwidth = gr_font->texture->width / 96; in gr_init_font()
286 gr_font->texture->width = font.width; in gr_init_font()
288 gr_font->texture->row_bytes = font.width; in gr_init_font()
291 unsigned char* bits = reinterpret_cast<unsigned char*>(malloc(font.width * font.height)); in gr_init_font()
330 gr_blit(frame, 0, 0, frame->width, frame->height, x, 0);
341 gr_fill(gr_draw->width - 200 - x, 300, gr_draw->width - x, 500);
384 overscan_offset_x = gr_draw->width * overscan_percent / 100; in gr_init()
400 return gr_draw->width - 2*overscan_offset_x; in gr_fb_width()