# HG changeset patch # User Sam Lantinga # Date 1103493884 0 # Node ID c2f2370ac1e5f5b46f804856d6b6d98ffdb6322c # Parent 720a96badf51535bdbb10be8b601a2c4eb2c82dc *** empty log message *** diff -r 720a96badf51 -r c2f2370ac1e5 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); }