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