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