*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Sun, 19 Dec 2004 22:04:44 +0000
changeset 1017c2f2370ac1e5
parent 1016 720a96badf51
child 1018 012af0b7e8e6
*** empty log message ***
src/video/SDL_surface.c
     1.1 --- a/src/video/SDL_surface.c	Thu Dec 16 06:39:54 2004 +0000
     1.2 +++ b/src/video/SDL_surface.c	Sun Dec 19 22:04:44 2004 +0000
     1.3 @@ -54,7 +54,7 @@
     1.4  
     1.5  	/* Make sure the size requested doesn't overflow our datatypes */
     1.6  	/* Next time I write a library like SDL, I'll use int for size. :) */
     1.7 -	if ( width > 16384 || height > 16384 ) {
     1.8 +	if ( width >= 16384 || height >= 65536 ) {
     1.9  		SDL_SetError("Width or height is too large");
    1.10  		return(NULL);
    1.11  	}