diff src/video/SDL_surface.c @ 1017:c2f2370ac1e5

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Dec 2004 22:04:44 +0000
parents bb1588ebe47b
children 68f607298ca9
line wrap: on
line diff
--- 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);
 	}