comparison include/SDL_compat.h @ 3034:0e821769fc51

Fixed NULL pointer dereference
author Sam Lantinga <slouken@libsdl.org>
date Tue, 13 Jan 2009 03:53:22 +0000
parents 929e7dd10031
children 62d4992e5a92
comparison
equal deleted inserted replaced
3033:4e4f47c5f941 3034:0e821769fc51
226 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen); 226 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
227 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void); 227 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
228 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, 228 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
229 int height, 229 int height,
230 int bpp, Uint32 flags); 230 int bpp, Uint32 flags);
231 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format, 231 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(const SDL_PixelFormat * format, Uint32 flags);
232 Uint32 flags);
233 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, 232 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width,
234 int height, 233 int height,
235 int bpp, Uint32 flags); 234 int bpp, Uint32 flags);
236 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void); 235 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
237 extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen, 236 extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,