mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +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)
|
||||
{
|
||||
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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue