mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 16:50:48 +00:00
The init sequence cleanup!
Also broke up client.h into a lot of smaller headers. Oh, software rendering works again. And yes, this does hit a hell of a lot of files.
This commit is contained in:
parent
b0d4014885
commit
13bd5ce012
92 changed files with 912 additions and 422 deletions
|
@ -134,8 +134,6 @@ VID_Init (unsigned char *palette)
|
|||
//Uint16 video_w, video_h;
|
||||
Uint32 flags;
|
||||
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, "Toggles fullscreen game mode");
|
||||
|
||||
// Load the SDL library
|
||||
if (SDL_Init(SDL_INIT_VIDEO)<0) //|SDL_INIT_AUDIO|SDL_INIT_CDROM) < 0)
|
||||
Sys_Error("VID: Couldn't load SDL: %s", SDL_GetError());
|
||||
|
@ -183,6 +181,12 @@ VID_Init (unsigned char *palette)
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
VID_Init_Cvars ()
|
||||
{
|
||||
vid_fullscreen = Cvar_Get ("vid_fullscreen", "0", CVAR_ROM, "Toggles fullscreen game mode");
|
||||
}
|
||||
|
||||
void
|
||||
VID_Shutdown (void)
|
||||
{
|
||||
|
@ -251,12 +255,6 @@ D_EndDirectRect (int x, int y, int width, int height)
|
|||
SDL_UpdateRect(screen, x, y, width, height);
|
||||
}
|
||||
|
||||
void
|
||||
VID_InitCvars ()
|
||||
{
|
||||
// It may not look like it, but this is important
|
||||
}
|
||||
|
||||
void
|
||||
VID_LockBuffer ( void )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue