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

Fix for #1577, SDL_RenderCopyEx - Runtime check fails when dstrect ==…

… NULL and center == NULL

Thanks Michael Ehrmann.
  • Loading branch information
gabomdq committed Aug 24, 2012
1 parent 641f558 commit 78df8195bdc6b1e7fb77cdd1984e1f1889d99716
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/render/SDL_render.c
@@ -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) {

0 comments on commit 78df819

Please sign in to comment.