gdi32: Don't hold the GDI lock when setting the pixel format.

This commit is contained in:
Chris Robinson 2007-09-11 17:24:55 -07:00 committed by Alexandre Julliard
parent 14395a509a
commit 09c76ffbdc
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }