remove dont_emulate_dc setting

This commit is contained in:
FunkyFr3sh 2023-07-31 09:17:57 +02:00
parent 2ee0767520
commit 63257823b1
5 changed files with 17 additions and 9 deletions

View file

@ -92,6 +92,7 @@ ULONG __stdcall IDirectDrawSurface__Release(IDirectDrawSurfaceImpl* This)
if (This->bitmap)
{
DeleteObject(This->bitmap);
InterlockedDecrement(&g_dds_gdi_handles);
}
else if (This->surface && !This->custom_buf)
{
@ -99,7 +100,10 @@ ULONG __stdcall IDirectDrawSurface__Release(IDirectDrawSurfaceImpl* This)
}
if (This->hdc)
{
DeleteDC(This->hdc);
InterlockedDecrement(&g_dds_gdi_handles);
}
if (This->bmi)
HeapFree(GetProcessHeap(), 0, This->bmi);