support CLSID_DirectDrawClipper in CoCreateInstance

This commit is contained in:
FunkyFr3sh 2023-08-10 11:32:43 +02:00
parent 3a3304283f
commit d7786e1f0e
2 changed files with 13 additions and 8 deletions

View file

@ -758,14 +758,6 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
real_SetWindowLongA(g_ddraw->hwnd, GWL_EXSTYLE, exstyle & ~(WS_EX_TOOLWINDOW));
}
if (g_ddraw->wine)
{
real_SetWindowLongA(
g_ddraw->hwnd,
GWL_STYLE,
(real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE) | WS_MINIMIZEBOX) & ~(WS_MAXIMIZEBOX | WS_THICKFRAME));
}
/* center the window with correct dimensions */
int cy = g_ddraw->mode.dmPelsWidth ? g_ddraw->mode.dmPelsWidth : g_ddraw->render.width;
int cx = g_ddraw->mode.dmPelsHeight ? g_ddraw->mode.dmPelsHeight : g_ddraw->render.height;