Home | History | Annotate | Download | only in video

Lines Matching full:dstrect

83 int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect)
89 if ( overlay == NULL || dstrect == NULL ) {
90 SDL_SetError("Passed NULL overlay or dstrect");
99 dstx = dstrect->x;
100 dsty = dstrect->y;
101 dstw = dstrect->w;
102 dsth = dstrect->h;
104 srcw += (dstx * overlay->w) / dstrect->w;
106 srcx -= (dstx * overlay->w) / dstrect->w;
111 srcw -= (extra * overlay->w) / dstrect->w;
115 srch += (dsty * overlay->h) / dstrect->h;
117 srcy -= (dsty * overlay->h) / dstrect->h;
122 srch -= (extra * overlay->h) / dstrect->h;