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)
|
const PIXELFORMATDESCRIPTOR *ppfd)
|
||||||
{
|
{
|
||||||
INT bRet = FALSE;
|
INT bRet = FALSE;
|
||||||
DC * dc = DC_GetDCPtr( hdc );
|
DC * dc = get_dc_ptr( hdc );
|
||||||
|
|
||||||
TRACE("(%p,%d,%p)\n",hdc,iPixelFormat,ppfd);
|
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");
|
if (!dc->funcs->pSetPixelFormat) FIXME(" :stub\n");
|
||||||
else bRet = dc->funcs->pSetPixelFormat(dc->physDev,iPixelFormat,ppfd);
|
else bRet = dc->funcs->pSetPixelFormat(dc->physDev,iPixelFormat,ppfd);
|
||||||
|
|
||||||
DC_ReleaseDCPtr( dc );
|
release_dc_ptr( dc );
|
||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue