summaryrefslogtreecommitdiff
path: root/video/win32_v.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/win32_v.c')
-rw-r--r--video/win32_v.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/video/win32_v.c b/video/win32_v.c
index a4fffd0c0..3656e66ad 100644
--- a/video/win32_v.c
+++ b/video/win32_v.c
@@ -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) {