diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/plClient.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/plClient.cpp index 19b1164f..a4ebfbdb 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/plClient.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/plClient.cpp @@ -2170,9 +2170,9 @@ void plClient::ResetDisplayDevice(int Width, int Height, int ColorDepth, hsBool WindowActivate(false); - ResizeDisplayDevice(Width, Height, Windowed); - fPipeline->ResetDisplayDevice(Width, Height, ColorDepth, Windowed, NumAASamples, MaxAnisotropicSamples, VSync); + + ResizeDisplayDevice(Width, Height, Windowed); WindowActivate(true); } @@ -2191,7 +2191,8 @@ void plClient::ResizeDisplayDevice(int Width, int Height, hsBool Windowed) UInt32 winStyle, winExStyle; if( Windowed ) { - winStyle = WS_OVERLAPPEDWINDOW; + // WS_VISIBLE appears necessary to avoid leaving behind framebuffer junk when going from windowed to a smaller window + winStyle = WS_OVERLAPPEDWINDOW | WS_VISIBLE; winExStyle = WS_EX_APPWINDOW | WS_EX_WINDOWEDGE; } else { winStyle = WS_POPUP;