Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
slouken committed Jul 31, 2013
1 parent 7e78c84 commit d8f9be64d88462b8181651b47d8ad5ccc092837d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/SDL_blit.c
@@ -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;

0 comments on commit d8f9be6

Please sign in to comment.