summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-02-22 14:26:07 +0000
committerfrosch <frosch@openttd.org>2014-02-22 14:26:07 +0000
commitaaa6d0f9ae118cebf6987f06b186ebc56c9d04ac (patch)
treecb290263f166404a87c254439f5d9d8f05d573b0 /src
parent9b9a21f0447a2aec3a64e55708b4435edd5b3459 (diff)
downloadopenttd-aaa6d0f9ae118cebf6987f06b186ebc56c9d04ac.tar.xz
(svn r26360) -Revert (r25550) / Fix [FS#5922]: ClientSizeChanged is only called via WndProcGdi which already has the mutex. The issue which r25550 tried to fix still exists as FS#5867.
Diffstat (limited to 'src')
-rw-r--r--src/video/win32_v.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 186ac1025..0ba21b0a1 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -184,7 +184,6 @@ static void ClientSizeChanged(int w, int h)
{
/* allocate new dib section of the new size */
if (AllocateDibSection(w, h)) {
- if (_draw_mutex != NULL) _draw_mutex->BeginCritical();
/* mark all palette colours dirty */
_cur_palette.first_dirty = 0;
_cur_palette.count_dirty = 256;
@@ -199,8 +198,6 @@ static void ClientSizeChanged(int w, int h)
_screen.dst_ptr = _wnd.buffer_bits;
UpdateWindows();
}
-
- if (_draw_mutex != NULL) _draw_mutex->EndCritical();
}
}