mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
gl_vidsdl.c: minor cleanup (lets not hijack the SDL_ prefix)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@840 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
bd5b2ae556
commit
d3676574df
1 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#define MAXWIDTH 10000
|
#define MAXWIDTH 10000
|
||||||
#define MAXHEIGHT 10000
|
#define MAXHEIGHT 10000
|
||||||
|
|
||||||
#define SDL_DEFAULT_FLAGS SDL_OPENGL
|
#define DEFAULT_SDL_FLAGS SDL_OPENGL
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int width;
|
int width;
|
||||||
|
@ -195,7 +195,7 @@ VID_ValidMode
|
||||||
*/
|
*/
|
||||||
static qboolean VID_ValidMode (int width, int height, int bpp, qboolean fullscreen)
|
static qboolean VID_ValidMode (int width, int height, int bpp, qboolean fullscreen)
|
||||||
{
|
{
|
||||||
Uint32 flags = SDL_DEFAULT_FLAGS;
|
Uint32 flags = DEFAULT_SDL_FLAGS;
|
||||||
|
|
||||||
if (width < 320)
|
if (width < 320)
|
||||||
return false;
|
return false;
|
||||||
|
@ -229,7 +229,7 @@ VID_SetMode
|
||||||
static int VID_SetMode (int width, int height, int bpp, qboolean fullscreen)
|
static int VID_SetMode (int width, int height, int bpp, qboolean fullscreen)
|
||||||
{
|
{
|
||||||
int temp;
|
int temp;
|
||||||
Uint32 flags = SDL_DEFAULT_FLAGS;
|
Uint32 flags = DEFAULT_SDL_FLAGS;
|
||||||
char caption[50];
|
char caption[50];
|
||||||
|
|
||||||
if (fullscreen)
|
if (fullscreen)
|
||||||
|
@ -821,7 +821,7 @@ static void VID_InitModelist (void)
|
||||||
format.palette = NULL;
|
format.palette = NULL;
|
||||||
|
|
||||||
// enumerate fullscreen modes
|
// enumerate fullscreen modes
|
||||||
flags = SDL_DEFAULT_FLAGS | SDL_FULLSCREEN;
|
flags = DEFAULT_SDL_FLAGS | SDL_FULLSCREEN;
|
||||||
for (i = 0; i < (int)(sizeof(bpps)/sizeof(bpps[0])); i++)
|
for (i = 0; i < (int)(sizeof(bpps)/sizeof(bpps[0])); i++)
|
||||||
{
|
{
|
||||||
if (nummodes >= MAX_MODE_LIST)
|
if (nummodes >= MAX_MODE_LIST)
|
||||||
|
@ -871,7 +871,7 @@ VID_Init
|
||||||
*/
|
*/
|
||||||
void VID_Init (void)
|
void VID_Init (void)
|
||||||
{
|
{
|
||||||
static char vid_center[32] = "SDL_VIDEO_CENTERED=center";
|
static char vid_center[] = "SDL_VIDEO_CENTERED=center";
|
||||||
const SDL_VideoInfo *info;
|
const SDL_VideoInfo *info;
|
||||||
int width, height, bpp;
|
int width, height, bpp;
|
||||||
qboolean fullscreen;
|
qboolean fullscreen;
|
||||||
|
@ -1222,7 +1222,7 @@ static void VID_Menu_ChooseNextMode (int dir)
|
||||||
================
|
================
|
||||||
VID_Menu_ChooseNextBpp
|
VID_Menu_ChooseNextBpp
|
||||||
|
|
||||||
chooses next bpp in order, then updates vid_bpp cvar, then updates refreshrate list
|
chooses next bpp in order, then updates vid_bpp cvar
|
||||||
================
|
================
|
||||||
*/
|
*/
|
||||||
static void VID_Menu_ChooseNextBpp (int dir)
|
static void VID_Menu_ChooseNextBpp (int dir)
|
||||||
|
|
Loading…
Reference in a new issue