Lines Matching defs:rect
816 SDL_Rect rect;
817 rect.x = x;
818 rect.y = y;
819 rect.w = w;
820 rect.h = h;
822 SDL_RenderFillRect(renderer, &rect);
849 static void calculate_display_rect(SDL_Rect *rect,
870 rect->x = scr_xleft + x;
871 rect->y = scr_ytop + y;
872 rect->w = FFMAX((int)width, 1);
873 rect->h = FFMAX((int)height, 1);
965 SDL_Rect rect;
1013 calculate_display_rect(&rect, is->xleft, is->ytop, is->width, is->height, vp->width, vp->height, vp->sar);
1025 SDL_RenderCopyEx(renderer, is->vid_texture, NULL, &rect, 0, NULL, vp->flip_v ? SDL_FLIP_VERTICAL : 0);
1029 SDL_RenderCopy(renderer, is->sub_texture, NULL, &rect);
1032 double xratio = (double)rect.w / (double)sp->width;
1033 double yratio = (double)rect.h / (double)sp->height;
1036 SDL_Rect target = {.x = rect.x + sub_rect->x * xratio,
1037 .y = rect.y + sub_rect->y * yratio,
1154 SDL_Rect rect = {.x = s->xpos, .y = 0, .w = 1, .h = s->height};
1171 if (!SDL_LockTexture(s->vis_texture, &rect, (void **)&pixels, &pitch)) {
1315 SDL_Rect rect;
1320 calculate_display_rect(&rect, 0, 0, max_width, max_height, width, height, sar);
1321 default_width = rect.w;
1322 default_height = rect.h;