Lines Matching refs:row_pixels
97 static void incr_x(uint32_t** p, int row_pixels) { in incr_x() argument
99 *p = *p - row_pixels; in incr_x()
101 *p = *p + row_pixels; in incr_x()
110 static void incr_y(uint32_t** p, int row_pixels) { in incr_y() argument
116 *p = *p - row_pixels; in incr_y()
118 *p = *p + row_pixels; in incr_y()
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()
133 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt()
178 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_text() local
181 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_text()
183 TextBlend(src_p, font->texture->row_bytes, dst_p, row_pixels, font->char_width, in gr_text()
203 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_texticon() local
205 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_texticon()
206 TextBlend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon()
245 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_fill() local
246 uint32_t* p = PixelAt(gr_draw, x1, y1, row_pixels); in gr_fill()
253 incr_x(&px, row_pixels); in gr_fill()
255 incr_y(&p, row_pixels); in gr_fill()
275 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_blit() local
278 uint32_t* dst_py = PixelAt(gr_draw, dx, dy, row_pixels); in gr_blit()
285 incr_x(&dst_px, row_pixels); in gr_blit()
288 incr_y(&dst_py, row_pixels); in gr_blit()