mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 04:01:17 +00:00
Added VID_SetCaption support and removed SDL_INIT_CDROM for now. (thats in cd_sdl.c).
This commit is contained in:
parent
4f6b7053ac
commit
3a50d8337d
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
vid_sdl.h
|
||||
vid_sdl.c
|
||||
|
||||
Video driver for Sam Lantinga's Simple DirectMedia Layer
|
||||
|
||||
|
@ -98,7 +98,7 @@ void VID_Init (unsigned char *palette)
|
|||
|
||||
|
||||
// Load the SDL library
|
||||
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_CDROM)<0) //|SDL_INIT_AUDIO|SDL_INIT_CDROM) < 0)
|
||||
if (SDL_Init(SDL_INIT_VIDEO)<0) //|SDL_INIT_AUDIO|SDL_INIT_CDROM) < 0)
|
||||
Sys_Error("VID: Couldn't load SDL: %s", SDL_GetError());
|
||||
|
||||
// Set up display mode (width and height)
|
||||
|
@ -483,3 +483,9 @@ VID_UnlockBuffer ( void )
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
VID_SetCaption (char *text)
|
||||
{
|
||||
SDL_WM_SetCaption(text, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue