mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-10 17:50:48 +00:00
gl_vidnt.c (VID_SetMode): Initialize stat to false to avoid a compiler warning.
Some whitespace tidy-ups all over. gl_vidsdl.c (VID_SetMode): Likewise. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@149 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
c7dc5d6cbf
commit
4b4ee0cbe9
2 changed files with 19 additions and 19 deletions
|
@ -344,9 +344,9 @@ VID_SetWindowedMode
|
||||||
*/
|
*/
|
||||||
qboolean VID_SetWindowedMode (int modenum)
|
qboolean VID_SetWindowedMode (int modenum)
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
int lastmodestate, width, height;
|
int lastmodestate, width, height;
|
||||||
RECT rect;
|
RECT rect;
|
||||||
|
|
||||||
lastmodestate = modestate;
|
lastmodestate = modestate;
|
||||||
|
|
||||||
|
@ -430,9 +430,9 @@ VID_SetFullDIBMode
|
||||||
*/
|
*/
|
||||||
qboolean VID_SetFullDIBMode (int modenum)
|
qboolean VID_SetFullDIBMode (int modenum)
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
int lastmodestate, width, height;
|
int lastmodestate, width, height;
|
||||||
RECT rect;
|
RECT rect;
|
||||||
|
|
||||||
if (!leavecurrentmode)
|
if (!leavecurrentmode)
|
||||||
{
|
{
|
||||||
|
@ -526,10 +526,10 @@ VID_SetMode
|
||||||
*/
|
*/
|
||||||
int VID_SetMode (int modenum)
|
int VID_SetMode (int modenum)
|
||||||
{
|
{
|
||||||
int original_mode, temp;
|
int original_mode, temp;
|
||||||
qboolean stat;
|
qboolean stat = false;
|
||||||
MSG msg;
|
MSG msg;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
||||||
if ((windowed && (modenum != 0)) ||
|
if ((windowed && (modenum != 0)) ||
|
||||||
(!windowed && (modenum < 1)) ||
|
(!windowed && (modenum < 1)) ||
|
||||||
|
@ -604,8 +604,8 @@ int VID_SetMode (int modenum)
|
||||||
|
|
||||||
while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
|
while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
|
||||||
{
|
{
|
||||||
TranslateMessage (&msg);
|
TranslateMessage (&msg);
|
||||||
DispatchMessage (&msg);
|
DispatchMessage (&msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
Sleep (100);
|
Sleep (100);
|
||||||
|
@ -656,9 +656,9 @@ VID_Restart -- johnfitz -- change video modes on the fly
|
||||||
*/
|
*/
|
||||||
void VID_Restart (void)
|
void VID_Restart (void)
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
HGLRC hrc;
|
HGLRC hrc;
|
||||||
int i;
|
int i;
|
||||||
qboolean mode_changed = false;
|
qboolean mode_changed = false;
|
||||||
vmode_t oldmode;
|
vmode_t oldmode;
|
||||||
|
|
||||||
|
|
|
@ -241,10 +241,10 @@ VID_SetMode
|
||||||
*/
|
*/
|
||||||
int VID_SetMode (int modenum)
|
int VID_SetMode (int modenum)
|
||||||
{
|
{
|
||||||
int temp;
|
int temp;
|
||||||
qboolean stat;
|
qboolean stat = false;
|
||||||
Uint32 flags = SDL_DEFAULT_FLAGS;
|
Uint32 flags = SDL_DEFAULT_FLAGS;
|
||||||
char caption[50];
|
char caption[50];
|
||||||
|
|
||||||
// TODO: check if video mode is supported using SDL_VideoModeOk
|
// TODO: check if video mode is supported using SDL_VideoModeOk
|
||||||
if ((windowed && (modenum != 0)) ||
|
if ((windowed && (modenum != 0)) ||
|
||||||
|
@ -366,7 +366,7 @@ VID_Restart -- johnfitz -- change video modes on the fly
|
||||||
*/
|
*/
|
||||||
void VID_Restart (void)
|
void VID_Restart (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
vmode_t oldmode;
|
vmode_t oldmode;
|
||||||
|
|
||||||
if (vid_locked || !vid_changed)
|
if (vid_locked || !vid_changed)
|
||||||
|
|
Loading…
Reference in a new issue