SDL_DisplayYUVOverlay, source rectangle

Hi

Why don’t SDL_DisplayYUVOverlay take an additional SDL_Rect* to specify the
source rectangle you want to display on the surface? Currently it look like this:
int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect);
why isn’t it
int SDL_DisplayYUVOverlay(SDL_Overlay overlay, SDL_Rect srcrect, SDL_Rect *dstrect);
instead?

Is there some other way to display only a part of a SDL_Overlay? It isn’t very
effective to display the entire overlay if you only need a part of it…

/ Fredrik Kuivinen

Hi

Why don’t SDL_DisplayYUVOverlay take an additional SDL_Rect* to specify the
source rectangle you want to display on the surface? Currently it look like this:
int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect);
why isn’t it
int SDL_DisplayYUVOverlay(SDL_Overlay overlay, SDL_Rect srcrect, SDL_Rect *dstrect);
instead?

Is there some other way to display only a part of a SDL_Overlay? It isn’t very
effective to display the entire overlay if you only need a part of it…

Good question. It’s something we’ll look at for SDL 1.3

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment