1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

fix dune 2000 window frame

This commit is contained in:
FunkyFr3sh 2018-12-01 00:25:16 +01:00
parent 45c2206946
commit ab7a3d5108

View File

@ -882,6 +882,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
switch(uMsg) switch(uMsg)
{ {
case WM_NCPAINT:
{
// return DefWindowProc to prevent glitched window frame (dune 2000)
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}
case WM_D3D9DEVICELOST: case WM_D3D9DEVICELOST:
{ {
if (Direct3D9Active && Direct3D9_OnDeviceLost()) if (Direct3D9Active && Direct3D9_OnDeviceLost())