Check for negative source rectangle in SDL_SoftBlit() (thanks John!)
This commit is contained in:
parent
058120689b
commit
35628ecbc4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue