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

Commit

Permalink
Fix for #1577, SDL_RenderCopyEx - Runtime check fails when dstrect ==…
Browse files Browse the repository at this point in the history
… NULL and center == NULL

Thanks Michael Ehrmann.
  • Loading branch information
gabomdq committed Aug 24, 2012
1 parent 641f558 commit 78df819
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/render/SDL_render.c
Expand Up @@ -1260,10 +1260,10 @@ SDL_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
/* We don't intersect the dstrect with the viewport as RenderCopy does because of potential rotation clipping issues... TODO: should we? */
if (dstrect) real_dstrect = *dstrect;
else {
real_srcrect.x = 0;
real_srcrect.y = 0;
real_srcrect.w = renderer->viewport.w;
real_srcrect.h = renderer->viewport.h;
real_dstrect.x = 0;
real_dstrect.y = 0;
real_dstrect.w = renderer->viewport.w;
real_dstrect.h = renderer->viewport.h;
}

if (texture->native) {
Expand Down

0 comments on commit 78df819

Please sign in to comment.