Преглед изворни кода

Fixed bug #7614: Segmentation Fault in SDL_BlitSurface

Sylvain пре 2 година
родитељ
комит
e6c8872fdc
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/video/SDL_surface.c

+ 2 - 1
src/video/SDL_surface.c

@@ -688,7 +688,8 @@ int SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect,
                   SDL_Surface *dst, SDL_Rect *dstrect)
                   SDL_Surface *dst, SDL_Rect *dstrect)
 {
 {
     SDL_Rect fulldst;
     SDL_Rect fulldst;
-    int srcx, srcy, w, h;
+    int srcx, srcy;
+    Sint64 w, h;
 
 
     /* Make sure the surfaces aren't locked */
     /* Make sure the surfaces aren't locked */
     if (!src || !dst) {
     if (!src || !dst) {