DXGL r241 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r240‎ | r241 | r242 >
Date:21:40, 21 August 2012
Author:admin
Status:new
Tags:
Comment:
Fix XP freezes.
Modified paths:
  • /ddraw/glRenderer.cpp (modified) (history)

Diff [purge]

Index: ddraw/glRenderer.cpp
@@ -558,6 +558,7 @@
559559 */
560560 void glRenderer::SetWnd(int width, int height, int bpp, int fullscreen, HWND newwnd)
561561 {
 562+ EnterCriticalSection(&cs);
562563 if(fullscreen && newwnd)
563564 {
564565 SetWindowLongPtrA(newwnd,GWL_EXSTYLE,WS_EX_APPWINDOW);