Lines Matching refs:rect
155 SDL_Rect rect = {0, 0, w, h}; in dump_masks() local
158 if(SDL_LockTexture(texture, &rect, (void **) &pixels, &pitch) != 0) return; in dump_masks()
160 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
161 for(lv_coord_t y = 0; y < rect.h; y++) { in dump_masks()
162 lv_memset_ff(line_buf, rect.w); in dump_masks()
163 …t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_t) rect.w; in dump_masks()
167 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
170 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks()
173 for(int x = 0; x < rect.w; x++) { in dump_masks()
181 lv_memset_ff(line_buf, rect.w); in dump_masks()
187 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks()
190 for(int x = 0; x < rect.w; x++) { in dump_masks()