Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 19, 2004
1 parent 00c2bb2 commit e5787ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_surface.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit e5787ce

Please sign in to comment.