Commit de097294 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401018
parent d88108af
...@@ -54,7 +54,7 @@ SDL_Surface * SDL_CreateRGBSurface (Uint32 flags, ...@@ -54,7 +54,7 @@ SDL_Surface * SDL_CreateRGBSurface (Uint32 flags,
/* Make sure the size requested doesn't overflow our datatypes */ /* Make sure the size requested doesn't overflow our datatypes */
/* Next time I write a library like SDL, I'll use int for size. :) */ /* 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"); SDL_SetError("Width or height is too large");
return(NULL); return(NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment