Small BitDepth fix
This commit is contained in:
@@ -38,11 +38,7 @@ int sdl_inited = 0;
|
|||||||
DWORD CurrentJoy=0;
|
DWORD CurrentJoy=0;
|
||||||
|
|
||||||
SDL_Joystick *JoystickInput[4];
|
SDL_Joystick *JoystickInput[4];
|
||||||
#ifdef __OPENGL__
|
|
||||||
DWORD BitDepth=16; // Do NOT change this for ANY reason
|
|
||||||
#else
|
|
||||||
DWORD BitDepth=0; // Do NOT change this for ANY reason
|
DWORD BitDepth=0; // Do NOT change this for ANY reason
|
||||||
#endif
|
|
||||||
BYTE BackColor=0;
|
BYTE BackColor=0;
|
||||||
|
|
||||||
float MouseMinX=0;
|
float MouseMinX=0;
|
||||||
@@ -537,6 +533,7 @@ int startgame(void)
|
|||||||
flags |= SDL_OPENGL;
|
flags |= SDL_OPENGL;
|
||||||
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
|
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
|
||||||
}
|
}
|
||||||
|
BitDepth = (UseOpenGL ? 16 : 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
surface = SDL_SetVideoMode(WindowWidth, WindowHeight, BitDepth, flags);
|
surface = SDL_SetVideoMode(WindowWidth, WindowHeight, BitDepth, flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user