Lines Matching refs:row_pixels
98 static void incr_x(uint32_t** p, int row_pixels) { in incr_x() argument
100 *p = *p - row_pixels; in incr_x()
102 *p = *p + row_pixels; in incr_x()
111 static void incr_y(uint32_t** p, int row_pixels) { in incr_y() argument
117 *p = *p - row_pixels; in incr_y()
119 *p = *p + row_pixels; in incr_y()
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()
131 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt()
134 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt()
179 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_text() local
182 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_text()
184 TextBlend(src_p, font->texture->row_bytes, dst_p, row_pixels, font->char_width, in gr_text()
204 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_texticon() local
206 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_texticon()
207 TextBlend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon()
246 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_fill() local
247 uint32_t* p = PixelAt(gr_draw, x1, y1, row_pixels); in gr_fill()
254 incr_x(&px, row_pixels); in gr_fill()
256 incr_y(&p, row_pixels); in gr_fill()
276 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_blit() local
279 uint32_t* dst_py = PixelAt(gr_draw, dx, dy, row_pixels); in gr_blit()
286 incr_x(&dst_px, row_pixels); in gr_blit()
289 incr_y(&dst_py, row_pixels); in gr_blit()