Lines Matching refs:width
46 return x < 0 || x >= (rotation % 2 ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
47 y >= (rotation % 2 ? gr_draw->width : gr_draw->height); in outside()
105 return reinterpret_cast<uint32_t*>(surf->data) + x * row_pixels + (surf->width - y); in pixel_at()
108 (surf->width - 1 - x); in pixel_at()
118 int width, int height) { in text_blend() argument
123 for (int i = 0; i < width; ++i, incr_x(&px, dst_row_pixels)) { in text_blend()
177 if (outside(x, y) || outside(x + icon->width - 1, y + icon->height - 1)) return; in gr_texticon()
183 text_blend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon()
199 gr_draw->row_bytes == gr_draw->width * gr_draw->pixel_bytes) { in gr_clear()
203 int row_diff = gr_draw->row_bytes / gr_draw->pixel_bytes - gr_draw->width; in gr_clear()
205 for (int x = 0; x < gr_draw->width; ++x) { in gr_clear()
283 return surface->width; in gr_get_width()
308 font->char_width = font->texture->width / 96; in gr_init_font()
327 gr_font->texture->width = font.width; in gr_init_font()
329 gr_font->texture->row_bytes = font.width; in gr_init_font()
332 unsigned char* bits = static_cast<unsigned char*>(malloc(font.width * font.height)); in gr_init_font()
372 overscan_offset_x = gr_draw->width * overscan_percent / 100; in gr_init()
393 : gr_draw->width - 2 * overscan_offset_x; in gr_fb_width()
397 return rotation % 2 ? gr_draw->width - 2 * overscan_offset_x in gr_fb_height()