gdi32: Make sure the DC is up-to-date before accessing the pixel format.

This commit is contained in:
Alexandre Julliard 2008-05-12 19:58:23 +02:00
parent d5ccbe2ba4
commit 7e2e30bade
2 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,7 @@ static BOOL WINAPI wglSetPixelFormatWINE(HDC hdc, int iPixelFormat, const PIXELF
if (!dc) return 0;
update_dc( dc );
if (!dc->funcs->pwglSetPixelFormatWINE) FIXME(" :stub\n");
else bRet = dc->funcs->pwglSetPixelFormatWINE(dc->physDev, iPixelFormat, ppfd);

View File

@ -372,6 +372,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat,
if (!dc) return 0;
update_dc( dc );
if (!dc->funcs->pSetPixelFormat) FIXME(" :stub\n");
else bRet = dc->funcs->pSetPixelFormat(dc->physDev,iPixelFormat,ppfd);
@ -433,6 +434,7 @@ INT WINAPI DescribePixelFormat( HDC hdc, INT iPixelFormat, UINT nBytes,
if (!dc) return 0;
update_dc( dc );
if (!dc->funcs->pDescribePixelFormat)
{
FIXME(" :stub\n");