src/video/x11/SDL_x11video.c
branchSDL-1.2
changeset 4253 b0c979816d67
parent 4218 50b4ab8f8271
child 4266 62849663f20a
     1.1 --- a/src/video/x11/SDL_x11video.c	Sun Sep 27 21:44:55 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11video.c	Sun Sep 27 22:29:13 2009 +0000
     1.3 @@ -1196,7 +1196,10 @@
     1.4  		current->w = width;
     1.5  		current->h = height;
     1.6  		current->pitch = SDL_CalculatePitch(current);
     1.7 -		X11_ResizeImage(this, current, flags);
     1.8 +		if (X11_ResizeImage(this, current, flags) < 0) {
     1.9 +			current = NULL;
    1.10 +			goto done;
    1.11 +		}
    1.12  	}
    1.13  
    1.14  	/* Clear these flags and set them only if they are in the new set. */