From e5787cefc846b4a7673f059ad9b7e8ed2de4864a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 19 Dec 2004 22:04:44 +0000 Subject: [PATCH] *** empty log message *** --- src/video/SDL_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index dccc66fca..bb431daae 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -54,7 +54,7 @@ SDL_Surface * SDL_CreateRGBSurface (Uint32 flags, /* 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); }