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)
{
HDC hdc;
int lastmodestate, width, height;
RECT rect;
HDC hdc;
int lastmodestate, width, height;
RECT rect;
lastmodestate = modestate;
@ -430,9 +430,9 @@ VID_SetFullDIBMode
*/
qboolean VID_SetFullDIBMode (int modenum)
{
HDC hdc;
int lastmodestate, width, height;
RECT rect;
HDC hdc;
int lastmodestate, width, height;
RECT rect;
if (!leavecurrentmode)
{
@ -526,10 +526,10 @@ VID_SetMode
*/
int VID_SetMode (int modenum)
{
int original_mode, temp;
qboolean stat;
MSG msg;
HDC hdc;
int original_mode, temp;
qboolean stat = false;
MSG msg;
HDC hdc;
if ((windowed && (modenum != 0)) ||
(!windowed && (modenum < 1)) ||
@ -604,8 +604,8 @@ int VID_SetMode (int modenum)
while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
TranslateMessage (&msg);
DispatchMessage (&msg);
}
Sleep (100);
@ -656,9 +656,9 @@ VID_Restart -- johnfitz -- change video modes on the fly
*/
void VID_Restart (void)
{
HDC hdc;
HDC hdc;
HGLRC hrc;
int i;
int i;
qboolean mode_changed = false;
vmode_t oldmode;

View File

@ -241,10 +241,10 @@ VID_SetMode
*/
int VID_SetMode (int modenum)
{
int temp;
qboolean stat;
Uint32 flags = SDL_DEFAULT_FLAGS;
char caption[50];
int temp;
qboolean stat = false;
Uint32 flags = SDL_DEFAULT_FLAGS;
char caption[50];
// TODO: check if video mode is supported using SDL_VideoModeOk
if ((windowed && (modenum != 0)) ||
@ -366,7 +366,7 @@ VID_Restart -- johnfitz -- change video modes on the fly
*/
void VID_Restart (void)
{
int i;
int i;
vmode_t oldmode;
if (vid_locked || !vid_changed)