1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-25 01:57:47 +01:00

improve logging

This commit is contained in:
FunkyFr3sh 2024-11-25 19:29:50 +01:00
parent b4352232c8
commit 6a22fcf142
2 changed files with 4 additions and 0 deletions

View File

@ -1547,6 +1547,8 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
if ((rc.right < real_GetSystemMetrics(SM_CXSCREEN) && rc.bottom < real_GetSystemMetrics(SM_CYSCREEN)) || !popup) if ((rc.right < real_GetSystemMetrics(SM_CXSCREEN) && rc.bottom < real_GetSystemMetrics(SM_CYSCREEN)) || !popup)
{ {
TRACE(" client rect=%dx%d\n", rc.right, rc.bottom);
g_ddraw.windowed_hack = TRUE; g_ddraw.windowed_hack = TRUE;
dd_SetDisplayMode(rc.right, rc.bottom, 16, 0); dd_SetDisplayMode(rc.right, rc.bottom, 16, 0);
} }

View File

@ -649,6 +649,8 @@ void hook_init()
{ {
/* Switch to 3 if we can be sure that ddraw.dll will not be unloaded from the process */ /* Switch to 3 if we can be sure that ddraw.dll will not be unloaded from the process */
g_config.hook = 3; g_config.hook = 3;
TRACE("g_config.hook = 3\n");
} }
} }