comparison src/video/SDL_surface.c @ 1017:c2f2370ac1e5

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Dec 2004 22:04:44 +0000
parents bb1588ebe47b
children 68f607298ca9
comparison
equal deleted inserted replaced
1016:720a96badf51 1017:c2f2370ac1e5
52 SDL_Surface *screen; 52 SDL_Surface *screen;
53 SDL_Surface *surface; 53 SDL_Surface *surface;
54 54
55 /* Make sure the size requested doesn't overflow our datatypes */ 55 /* Make sure the size requested doesn't overflow our datatypes */
56 /* Next time I write a library like SDL, I'll use int for size. :) */ 56 /* Next time I write a library like SDL, I'll use int for size. :) */
57 if ( width > 16384 || height > 16384 ) { 57 if ( width >= 16384 || height >= 65536 ) {
58 SDL_SetError("Width or height is too large"); 58 SDL_SetError("Width or height is too large");
59 return(NULL); 59 return(NULL);
60 } 60 }
61 61
62 /* Check to see if we desire the surface in video memory */ 62 /* Check to see if we desire the surface in video memory */