constified SDL_RegisterApp()

This commit is contained in:
Ozkan Sezer 2021-11-14 04:40:50 +03:00
parent 7dfd22ac5e
commit 8a6e48d46d
3 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ extern DECLSPEC void SDLCALL SDL_SetMainReady(void);
* *
* \since This function is available since SDL 2.0.0. * \since This function is available since SDL 2.0.0.
*/ */
extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst); extern DECLSPEC int SDLCALL SDL_RegisterApp(const char *name, Uint32 style, void *hInst);
extern DECLSPEC void SDLCALL SDL_UnregisterApp(void); extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
#endif /* __WIN32__ */ #endif /* __WIN32__ */

View File

@ -63,7 +63,7 @@ SDL_DYNAPI_PROC(SDL_RWops*,SDL_RWFromFP,(void *a, SDL_bool b),(a,b),return)
#endif #endif
#ifdef __WIN32__ #ifdef __WIN32__
SDL_DYNAPI_PROC(int,SDL_RegisterApp,(char *a, Uint32 b, void *c),(a,b,c),return) SDL_DYNAPI_PROC(int,SDL_RegisterApp,(const char *a, Uint32 b, void *c),(a,b,c),return)
SDL_DYNAPI_PROC(void,SDL_UnregisterApp,(void),(),) SDL_DYNAPI_PROC(void,SDL_UnregisterApp,(void),(),)
SDL_DYNAPI_PROC(int,SDL_Direct3D9GetAdapterIndex,(int a),(a),return) SDL_DYNAPI_PROC(int,SDL_Direct3D9GetAdapterIndex,(int a),(a),return)
SDL_DYNAPI_PROC(IDirect3DDevice9*,SDL_RenderGetD3D9Device,(SDL_Renderer *a),(a),return) SDL_DYNAPI_PROC(IDirect3DDevice9*,SDL_RenderGetD3D9Device,(SDL_Renderer *a),(a),return)

View File

@ -1542,7 +1542,7 @@ HINSTANCE SDL_Instance = NULL;
/* Register the class for this application */ /* Register the class for this application */
int int
SDL_RegisterApp(char *name, Uint32 style, void *hInst) SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
{ {
const char *hint; const char *hint;
WNDCLASSEX wcex; WNDCLASSEX wcex;