Lines Matching full:row_pixels
82 static void incr_x(uint32_t** p, int row_pixels) {
84 *p = *p + (rotation == 1 ? 1 : -1) * row_pixels;
91 static void incr_y(uint32_t** p, int row_pixels) {
95 *p = *p + (rotation ? -1 : 1) * row_pixels;
100 static uint32_t* pixel_at(GRSurface* surf, int x, int y, int row_pixels) {
103 return reinterpret_cast<uint32_t*>(surf->data) + y * row_pixels + x;
105 return reinterpret_cast<uint32_t*>(surf->data) + x * row_pixels + (surf->width - y);
107 return reinterpret_cast<uint32_t*>(surf->data) + (surf->height - 1 - y) * row_pixels +
110 return reinterpret_cast<uint32_t*>(surf->data) + (surf->height - 1 - x) * row_pixels + y;
154 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes;
157 uint32_t* dst_p = pixel_at(gr_draw, x, y, row_pixels);
159 text_blend(src_p, font->texture->row_bytes, dst_p, row_pixels, font->char_width,
179 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes;
181 uint32_t* dst_p = pixel_at(gr_draw, x, y, row_pixels);
183 text_blend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height);
222 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes;
223 uint32_t* p = pixel_at(gr_draw, x1, y1, row_pixels);
230 incr_x(&px, row_pixels);
232 incr_y(&p, row_pixels);
252 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes;
254 uint32_t* dst_py = pixel_at(gr_draw, dx, dy, row_pixels);
261 incr_x(&dst_px, row_pixels);
264 incr_y(&dst_py, row_pixels);