diff 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
line wrap: on
line diff
--- a/include/SDL_compat.h	Mon Jan 12 22:36:12 2009 +0000
+++ b/include/SDL_compat.h	Tue Jan 13 03:53:22 2009 +0000
@@ -228,8 +228,7 @@
 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
                                             int height,
                                             int bpp, Uint32 flags);
-extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
-                                                 Uint32 flags);
+extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(const SDL_PixelFormat * format, Uint32 flags);
 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width,
                                                       int height,
                                                       int bpp, Uint32 flags);