Commit 4ad52874 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Fully reset the DC state before deleting it.

parent 6c94d446
...@@ -815,21 +815,7 @@ BOOL WINAPI DeleteDC( HDC hdc ) ...@@ -815,21 +815,7 @@ BOOL WINAPI DeleteDC( HDC hdc )
release_dc_ptr( dc ); release_dc_ptr( dc );
return TRUE; return TRUE;
} }
reset_dc_state( hdc );
while (dc->saveLevel)
{
DC *dcs = dc->saved_dc;
dc->saved_dc = dcs->saved_dc;
dc->saveLevel--;
free_dc_state( dcs );
}
AbortPath( hdc );
SelectObject( hdc, GetStockObject(BLACK_PEN) );
SelectObject( hdc, GetStockObject(WHITE_BRUSH) );
SelectObject( hdc, GetStockObject(SYSTEM_FONT) );
SelectObject( hdc, GetStockObject(DEFAULT_BITMAP) );
free_dc_ptr( dc ); free_dc_ptr( dc );
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment