Home
last modified time | relevance | path

Searched refs:dstrect (Results 1 – 6 of 6) sorted by relevance

/lvgl-3.5.0/src/draw/sdl/
Dlv_draw_sdl_label.c147 SDL_Rect srcrect, dstrect; in lv_draw_sdl_draw_letter() local
148 lv_area_to_sdl_rect(&draw_area, &dstrect); in lv_draw_sdl_draw_letter()
151 srcrect.w = dstrect.w; in lv_draw_sdl_draw_letter()
152 srcrect.h = dstrect.h; in lv_draw_sdl_draw_letter()
156 SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_letter()
Dlv_draw_sdl_polygon.c87 SDL_Rect srcrect = {0, 0, w, h}, dstrect; in lv_draw_sdl_polygon() local
88 lv_area_to_sdl_rect(&draw_area, &dstrect); in lv_draw_sdl_polygon()
93 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_polygon()
Dlv_draw_sdl_line.c92 dstrect = {t_coords.x1 - 1 - dsc->width / 2, t_coords.y1 - 1, srcrect.w, srcrect.h}; in lv_draw_sdl_draw_line() local
97 if(!SDL_RectEquals(&clip_rect, &dstrect) || angle != 0) { in lv_draw_sdl_draw_line()
100 SDL_RenderCopyEx(renderer, texture, &srcrect, &dstrect, angle, &center, 0); in lv_draw_sdl_draw_line()
Dlv_draw_sdl_arc.c131 SDL_Rect srcrect = {0, 0, w, h}, dstrect; in lv_draw_sdl_draw_arc() local
132 lv_area_to_sdl_rect(&draw_area, &dstrect); in lv_draw_sdl_draw_arc()
137 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_arc()
Dlv_draw_sdl_img.c412 SDL_Rect srcrect, cliprect, dstrect = {0, 0, radius, radius}; in img_rounded_frag_obtain() local
440 calc_draw_part(texture, header, &coords, NULL, &srcrect, &dstrect); in img_rounded_frag_obtain()
442 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in img_rounded_frag_obtain()
Dlv_draw_sdl_rect.c404 SDL_Rect dstrect; in draw_bg_grad_simple() local
405 lv_area_to_sdl_rect(draw_area, &dstrect); in draw_bg_grad_simple()
412 srcrect.h = dstrect.h * 256 / coords_h; in draw_bg_grad_simple()
422 srcrect.w = dstrect.w * 256 / coords_w; in draw_bg_grad_simple()
438 SDL_RenderCopy(ctx->renderer, grad_texture, &srcrect, &dstrect); in draw_bg_grad_simple()