Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_label.c154 SDL_Rect srcrect, dstrect; in lv_draw_sdl_draw_letter() local
156 srcrect.x = draw_area.x1 - t_letter.x1; in lv_draw_sdl_draw_letter()
157 srcrect.y = draw_area.y1 - t_letter.y1; in lv_draw_sdl_draw_letter()
158 srcrect.w = dstrect.w; in lv_draw_sdl_draw_letter()
159 srcrect.h = dstrect.h; in lv_draw_sdl_draw_letter()
163 SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_letter()
Dlv_draw_sdl_line.c91 SDL_Rect srcrect = {0, 0, (int) length + dsc->width + 2, dsc->width + 2}, in lv_draw_sdl_draw_line() local
92 dstrect = {t_coords.x1 - 1 - dsc->width / 2, t_coords.y1 - 1, srcrect.w, srcrect.h}; 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_rect.c420 SDL_Rect srcrect; in draw_bg_grad_simple() local
423 srcrect.x = 0; in draw_bg_grad_simple()
424 srcrect.y = (draw_area->y1 - coords->y1) * 255 / coords_h; in draw_bg_grad_simple()
425 srcrect.w = 1; in draw_bg_grad_simple()
426 srcrect.h = dstrect.h * 256 / coords_h; in draw_bg_grad_simple()
428 if(srcrect.y < 0 || srcrect.y > 255) { in draw_bg_grad_simple()
434 srcrect.x = (draw_area->x1 - coords->x1) * 255 / coords_w; in draw_bg_grad_simple()
435 srcrect.y = 0; in draw_bg_grad_simple()
436 srcrect.w = dstrect.w * 256 / coords_w; in draw_bg_grad_simple()
437 srcrect.h = 1; in draw_bg_grad_simple()
[all …]
Dlv_draw_sdl_polygon.c89 SDL_Rect srcrect = {0, 0, w, h}, dstrect; in lv_draw_sdl_polygon() local
95 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_polygon()
Dlv_draw_sdl_arc.c132 SDL_Rect srcrect = {0, 0, w, h}, dstrect; in lv_draw_sdl_draw_arc() local
138 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_arc()
Dlv_draw_sdl_img.c435 SDL_Rect srcrect, cliprect, dstrect = {0, 0, radius, radius}; in img_rounded_frag_obtain() local
463 calc_draw_part(texture, header, &coords, NULL, &srcrect, &dstrect); in img_rounded_frag_obtain()
465 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in img_rounded_frag_obtain()