Commit 7e2e30ba authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent d5ccbe2b
...@@ -253,6 +253,7 @@ static BOOL WINAPI wglSetPixelFormatWINE(HDC hdc, int iPixelFormat, const PIXELF ...@@ -253,6 +253,7 @@ static BOOL WINAPI wglSetPixelFormatWINE(HDC hdc, int iPixelFormat, const PIXELF
if (!dc) return 0; if (!dc) return 0;
update_dc( dc );
if (!dc->funcs->pwglSetPixelFormatWINE) FIXME(" :stub\n"); if (!dc->funcs->pwglSetPixelFormatWINE) FIXME(" :stub\n");
else bRet = dc->funcs->pwglSetPixelFormatWINE(dc->physDev, iPixelFormat, ppfd); else bRet = dc->funcs->pwglSetPixelFormatWINE(dc->physDev, iPixelFormat, ppfd);
......
...@@ -372,6 +372,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat, ...@@ -372,6 +372,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat,
if (!dc) return 0; if (!dc) return 0;
update_dc( dc );
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);
...@@ -433,6 +434,7 @@ INT WINAPI DescribePixelFormat( HDC hdc, INT iPixelFormat, UINT nBytes, ...@@ -433,6 +434,7 @@ INT WINAPI DescribePixelFormat( HDC hdc, INT iPixelFormat, UINT nBytes,
if (!dc) return 0; if (!dc) return 0;
update_dc( dc );
if (!dc->funcs->pDescribePixelFormat) if (!dc->funcs->pDescribePixelFormat)
{ {
FIXME(" :stub\n"); FIXME(" :stub\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment