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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@149 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-04-26 13:41:39 +00:00
parent 68aa123a2c
commit 9a75b0a989
2 changed files with 19 additions and 19 deletions

View File

@ -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;

View File

@ -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)