mirror of
https://github.com/reactos/wine.git
synced 2025-02-07 20:57:39 +00:00
gdi32: Don't hold the GDI lock when setting the pixel format.
This commit is contained in:
parent
14395a509a
commit
09c76ffbdc
@ -351,7 +351,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat,
|
||||
const PIXELFORMATDESCRIPTOR *ppfd)
|
||||
{
|
||||
INT bRet = FALSE;
|
||||
DC * dc = DC_GetDCPtr( hdc );
|
||||
DC * dc = get_dc_ptr( hdc );
|
||||
|
||||
TRACE("(%p,%d,%p)\n",hdc,iPixelFormat,ppfd);
|
||||
|
||||
@ -360,7 +360,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat,
|
||||
if (!dc->funcs->pSetPixelFormat) FIXME(" :stub\n");
|
||||
else bRet = dc->funcs->pSetPixelFormat(dc->physDev,iPixelFormat,ppfd);
|
||||
|
||||
DC_ReleaseDCPtr( dc );
|
||||
release_dc_ptr( dc );
|
||||
return bRet;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user