summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-21 20:56:49 +0000
committerdarkvater <darkvater@openttd.org>2004-09-21 20:56:49 +0000
commit493df26058f21edc0227cfc58e8d7774e46befe6 (patch)
tree978553fd74970d0818109043a7b036f75253ae99 /win32.c
parent0ba58f25a46e3ccf3cba777d922c94f2f73b542b (diff)
downloadopenttd-493df26058f21edc0227cfc58e8d7774e46befe6.tar.xz
(svn r304) -Fix: [967096] fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame.
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32.c b/win32.c
index 52235c94b..91c523cd1 100644
--- a/win32.c
+++ b/win32.c
@@ -498,6 +498,7 @@ static void MakeWindow(bool full_screen)
error("CreateWindow failed");
}
}
+ GameSizeChanged(); // invalidate all windows, force redraw
}
static bool AllocateDibSection(int w, int h)
@@ -727,7 +728,7 @@ static bool Win32GdiChangeRes(int w, int h)
_wnd.width = _wnd.width_org = w;
_wnd.height = _wnd.height_org = h;
- MakeWindow(_wnd.fullscreen);
+ MakeWindow(_fullscreen); // _wnd.fullscreen screws up ingame resolution switching
return true;
}