mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
sdl 1.1.5 fixes
This commit is contained in:
parent
e3590642fb
commit
a22fd5a172
3 changed files with 27 additions and 6 deletions
|
@ -77,7 +77,12 @@ extern void VID_Init8bitPalette (void);
|
|||
void
|
||||
VID_SDL_GammaCheck (void)
|
||||
{
|
||||
#if SDL_VERSIONNUM(SDL_MAJOR_VERSION,SDL_MINOR_VERSION,SDL_PATCHLEVEL) \
|
||||
> SDL_VERSIONNUM(1,1,5)
|
||||
Uint16 redtable[256], greentable[256], bluetable[256];
|
||||
#else
|
||||
Uint8 redtable[256], greentable[256], bluetable[256];
|
||||
#endif
|
||||
|
||||
if (SDL_GetGammaRamp(redtable, greentable, bluetable) < 0)
|
||||
vid_gamma_avail = false;
|
||||
|
|
|
@ -38,8 +38,12 @@
|
|||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <io.h>
|
||||
#include <conio.h>
|
||||
#ifdef HAVE_IO_H
|
||||
# include <io.h>
|
||||
#endif
|
||||
#ifdef HAVE_CONIO_H
|
||||
# include <conio.h>
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <unistd.h>
|
||||
|
@ -69,6 +73,7 @@ qboolean isDedicated = false;
|
|||
char *svs_info;
|
||||
|
||||
int starttime;
|
||||
int noconinput;
|
||||
|
||||
#ifdef _WIN32
|
||||
# include "winquake.h"
|
||||
|
@ -185,8 +190,11 @@ Sys_Init_Cvars (void)
|
|||
Cvar_Set (sys_nostdout, "1");
|
||||
}
|
||||
|
||||
#ifndef SDL_main
|
||||
# define SDL_main main
|
||||
#endif
|
||||
|
||||
C_LINKAGE int
|
||||
int
|
||||
SDL_main (int c, char **v)
|
||||
{
|
||||
double time, oldtime, newtime;
|
||||
|
|
|
@ -38,8 +38,12 @@
|
|||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <io.h>
|
||||
#include <conio.h>
|
||||
#ifdef HAVE_IO_H
|
||||
# include <io.h>
|
||||
#endif
|
||||
#ifdef HAVE_CONIO_H
|
||||
# include <conio.h>
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <unistd.h>
|
||||
|
@ -69,6 +73,7 @@ qboolean is_server = false;
|
|||
char *svs_info;
|
||||
|
||||
int starttime;
|
||||
int noconinput;
|
||||
|
||||
#ifdef _WIN32
|
||||
# include "winquake.h"
|
||||
|
@ -185,8 +190,11 @@ Sys_Init_Cvars (void)
|
|||
Cvar_Set (sys_nostdout, "1");
|
||||
}
|
||||
|
||||
#ifndef SDL_main
|
||||
# define SDL_main main
|
||||
#endif
|
||||
|
||||
C_LINKAGE int
|
||||
int
|
||||
SDL_main (int c, char **v)
|
||||
{
|
||||
double time, oldtime, newtime;
|
||||
|
|
Loading…
Reference in a new issue