Mercurial > hg > openttd
changeset 7429:32cd97def391 draft
(svn r10834) -Revert (part of r10833): something too much was committed :(
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 09 Aug 2007 05:34:56 +0000 |
parents | d3fb06b480d2 |
children | 5ec86d3c460f |
files | src/video/win32_v.cpp |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -219,9 +219,8 @@ // recreate window? if ((full_screen || _wnd.fullscreen) && _wnd.main_wnd) { - HWND wnd = _wnd.main_wnd; + DestroyWindow(_wnd.main_wnd); _wnd.main_wnd = 0; - DestroyWindow(wnd); } #if defined(WINCE) @@ -520,9 +519,6 @@ break; case WM_SIZE: - /* Resizing a destroy window is NOT good */ - if (_wnd.main_wnd == 0) return; - if (wParam != SIZE_MINIMIZED) { /* Set maximized flag when we maximize (obviously), but also when we * switched to fullscreen from a maximized state */ @@ -796,9 +792,7 @@ { DeleteObject(_wnd.gdi_palette); DeleteObject(_wnd.dib_sect); - HWND wnd = _wnd.main_wnd; - _wnd.main_wnd = 0; - DestroyWindow(wnd); + DestroyWindow(_wnd.main_wnd); #if !defined(WINCE) if (_wnd.fullscreen) ChangeDisplaySettings(NULL, 0);