mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 10:14:57 -05:00
*** empty log message ***
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user