Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Check for negative source rectangle in SDL_SoftBlit() (thanks John!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 31, 2013
1 parent 7e78c84 commit d8f9be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_blit.c
Expand Up @@ -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;

Expand Down

0 comments on commit d8f9be6

Please sign in to comment.