remove dont_emulate_dc setting
This commit is contained in:
parent
2ee0767520
commit
63257823b1
5 changed files with 17 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue