Chris Robinson : gdi32: Don' t hold the GDI lock when setting the pixel format.
Alexandre Julliard
julliard at winehq.org
Tue Sep 18 05:30:56 CDT 2007
Module: wine
Branch: master
Commit: 09c76ffbdcb802e1823cbb78aa982947ba41f970
URL: http://source.winehq.org/git/wine.git/?a=commit;h=09c76ffbdcb802e1823cbb78aa982947ba41f970
Author: Chris Robinson <chris.kcat at gmail.com>
Date: Tue Sep 11 17:24:55 2007 -0700
gdi32: Don't hold the GDI lock when setting the pixel format.
---
dlls/gdi32/painting.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c
index 473f628..22912cc 100644
--- a/dlls/gdi32/painting.c
+++ b/dlls/gdi32/painting.c
@@ -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;
}
More information about the wine-cvs
mailing list