Lines Matching +full:- +full:w

73         full_coords.x1 -= extension->x1;  in lv_draw_sdl_composite_begin()
74 full_coords.x2 += extension->x2; in lv_draw_sdl_composite_begin()
75 full_coords.y1 -= extension->y1; in lv_draw_sdl_composite_begin()
76 full_coords.y2 += extension->y2; in lv_draw_sdl_composite_begin()
85 lv_draw_sdl_context_internals_t * internals = ctx->internals; in lv_draw_sdl_composite_begin()
86 …LV_ASSERT(internals->mask == NULL && internals->composition == NULL && internals->target_backup ==… in lv_draw_sdl_composite_begin()
88 lv_coord_t w = lv_area_get_width(apply_area), h = lv_area_get_height(apply_area); in lv_draw_sdl_composite_begin() local
89 …internals->composition = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_I… in lv_draw_sdl_composite_begin()
90 … &internals->composition_cached); in lv_draw_sdl_composite_begin()
92 lv_coord_t ofs_x = (lv_coord_t) - apply_area->x1, ofs_y = (lv_coord_t) - apply_area->y1; in lv_draw_sdl_composite_begin()
96 internals->target_backup = SDL_GetRenderTarget(ctx->renderer); in lv_draw_sdl_composite_begin()
97 SDL_SetRenderTarget(ctx->renderer, internals->composition); in lv_draw_sdl_composite_begin()
98 SDL_SetRenderDrawColor(ctx->renderer, 255, 255, 255, 0); in lv_draw_sdl_composite_begin()
100 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_NONE); in lv_draw_sdl_composite_begin()
101 SDL_RenderFillRect(ctx->renderer, NULL); in lv_draw_sdl_composite_begin()
102 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_BLEND); in lv_draw_sdl_composite_begin()
104 …internals->mask = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREA… in lv_draw_sdl_composite_begin()
105 &internals->composition_cached); in lv_draw_sdl_composite_begin()
106 dump_masks(internals->mask, apply_area); in lv_draw_sdl_composite_begin()
114 switch(comm_param->type) { in lv_draw_sdl_composite_begin()
117 if(param->cfg.outer) break; in lv_draw_sdl_composite_begin()
118 _lv_area_intersect(clip_out, apply_area, &param->cfg.rect); in lv_draw_sdl_composite_begin()
131 lv_draw_sdl_context_internals_t * internals = ctx->internals; in lv_draw_sdl_composite_end()
134 if(internals->mask) { in lv_draw_sdl_composite_end()
138 SDL_SetTextureBlendMode(internals->mask, mode); in lv_draw_sdl_composite_end()
139 SDL_RenderCopy(ctx->renderer, internals->mask, &src_rect, &src_rect); in lv_draw_sdl_composite_end()
144 if(internals->composition) { in lv_draw_sdl_composite_end()
148 SDL_SetRenderTarget(ctx->renderer, internals->target_backup); in lv_draw_sdl_composite_end()
151 SDL_SetTextureBlendMode(internals->composition, SDL_BLENDMODE_BLEND); in lv_draw_sdl_composite_end()
154 SDL_SetTextureBlendMode(internals->composition, SDL_BLENDMODE_ADD); in lv_draw_sdl_composite_end()
161 SDL_SetTextureBlendMode(internals->composition, mode); in lv_draw_sdl_composite_end()
168 SDL_SetTextureBlendMode(internals->composition, mode); in lv_draw_sdl_composite_end()
174 SDL_SetTextureBlendMode(internals->composition, SDL_BLENDMODE_BLEND); in lv_draw_sdl_composite_end()
178 SDL_RenderCopy(ctx->renderer, internals->composition, &src_rect, &dst_rect); in lv_draw_sdl_composite_end()
179 if(!internals->composition_cached) { in lv_draw_sdl_composite_end()
181 SDL_DestroyTexture(internals->composition); in lv_draw_sdl_composite_end()
185 internals->mask = internals->composition = internals->target_backup = NULL; in lv_draw_sdl_composite_end()
189 … lv_coord_t w, lv_coord_t h, bool * texture_in_cache) in lv_draw_sdl_composite_texture_obtain() argument
195 if(result == NULL || tex_size->x < w || tex_size->y < h) { in lv_draw_sdl_composite_texture_obtain()
196 lv_coord_t size = next_pow_of_2(LV_MAX(w, h)); in lv_draw_sdl_composite_texture_obtain()
204 result = SDL_CreateTexture(ctx->renderer, LV_DRAW_SDL_TEXTURE_FORMAT, access, size, size); in lv_draw_sdl_composite_texture_obtain()
206 tex_size->x = tex_size->y = size; in lv_draw_sdl_composite_texture_obtain()
248 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in dump_masks() local
249 SDL_assert(w > 0 && h > 0); in dump_masks()
250 SDL_Rect rect = {0, 0, w, h}; in dump_masks()
255 lv_opa_t * line_buf = lv_mem_buf_get(rect.w); in dump_masks()
257 lv_memset_ff(line_buf, rect.w); in dump_masks()
258 …lv_coord_t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_… in dump_masks()
262 lv_memset_00(&pixels[y * pitch], 4 * rect.w); in dump_masks()
265 lv_memset_ff(&pixels[y * pitch], 4 * rect.w); in dump_masks()
268 for(int x = 0; x < rect.w; x++) { in dump_masks()