(svn r2748) Remove unused cruft from the main loop

This commit is contained in:
tron
2005-07-29 16:40:29 +00:00
parent 1a5de9ff9b
commit f359d1a394
6 changed files with 13 additions and 24 deletions

View File

@@ -21,7 +21,6 @@ static struct {
HPALETTE gdi_palette;
int width,height;
int width_org, height_org;
bool switch_driver;
bool fullscreen;
bool double_size;
bool has_focus;
@@ -698,7 +697,7 @@ static void CheckPaletteAnim(void)
InvalidateRect(_wnd.main_wnd, NULL, FALSE);
}
static int Win32GdiMainLoop(void)
static void Win32GdiMainLoop(void)
{
MSG mesg;
uint32 next_tick = GetTickCount() + 30, cur_ticks;
@@ -711,8 +710,7 @@ static int Win32GdiMainLoop(void)
TranslateMessage(&mesg);
DispatchMessage(&mesg);
}
if (_exit_game) return ML_QUIT;
if (_wnd.switch_driver) return ML_SWITCHDRIVER;
if (_exit_game) return;
#if defined(_DEBUG)
if (_wnd.has_focus && GetAsyncKeyState(VK_SHIFT) < 0) {