mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-14 16:01:44 +00:00
some more constifications and fixes for deprecated conversion
from string constant to char* git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@303 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
c8888a8720
commit
e681ad30f9
3 changed files with 4 additions and 3 deletions
|
@ -153,7 +153,7 @@ CL_EstablishConnection
|
|||
Host should be either "local" or a net address to be passed on
|
||||
=====================
|
||||
*/
|
||||
void CL_EstablishConnection (char *host)
|
||||
void CL_EstablishConnection (const char *host)
|
||||
{
|
||||
if (cls.state == ca_dedicated)
|
||||
return;
|
||||
|
|
|
@ -296,7 +296,7 @@ void CL_DecayLights (void);
|
|||
|
||||
void CL_Init (void);
|
||||
|
||||
void CL_EstablishConnection (char *host);
|
||||
void CL_EstablishConnection (const char *host);
|
||||
void CL_Signon1 (void);
|
||||
void CL_Signon2 (void);
|
||||
void CL_Signon3 (void);
|
||||
|
|
|
@ -1182,6 +1182,7 @@ VID_Init
|
|||
*/
|
||||
void VID_Init (void)
|
||||
{
|
||||
static char vid_center[] = "SDL_VIDEO_CENTERED=center";
|
||||
const SDL_VideoInfo *info;
|
||||
int i, existingmode;
|
||||
int basenummodes, width, height, bpp, findbpp, done;
|
||||
|
@ -1207,7 +1208,7 @@ void VID_Init (void)
|
|||
if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1)
|
||||
Sys_Error("Could not initialize SDL Video");
|
||||
|
||||
SDL_putenv("SDL_VIDEO_CENTERED=center");
|
||||
SDL_putenv (vid_center);
|
||||
|
||||
VID_InitDIB();
|
||||
basenummodes = nummodes = 1;
|
||||
|
|
Loading…
Reference in a new issue