Check for negative source rectangle in SDL_SoftBlit() (thanks John!)

This commit is contained in:
Sam Lantinga 2013-07-30 20:57:26 -07:00
parent 058120689b
commit 35628ecbc4

View file

@ -61,7 +61,7 @@ SDL_SoftBlit(SDL_Surface * src, SDL_Rect * srcrect,
}
/* Set up source and destination buffer pointers, and BLIT! */
if (okay && srcrect->w && srcrect->h) {
if (okay && !SDL_RectEmpty(srcrect)) {
SDL_BlitFunc RunBlit;
SDL_BlitInfo *info = &src->map->info;