Module: wine Branch: master Commit: 7e2e30bade83bcf838cf05abd90cac9d81996b3e URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e2e30bade83bcf838cf05abd9...
Author: Alexandre Julliard julliard@winehq.org Date: Mon May 12 19:58:23 2008 +0200
gdi32: Make sure the DC is up-to-date before accessing the pixel format.
---
dlls/gdi32/opengl.c | 1 + dlls/gdi32/painting.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/opengl.c b/dlls/gdi32/opengl.c index f0810a8..022fc2c 100644 --- a/dlls/gdi32/opengl.c +++ b/dlls/gdi32/opengl.c @@ -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);
diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c index 8c9aa98..c3d8310 100644 --- a/dlls/gdi32/painting.c +++ b/dlls/gdi32/painting.c @@ -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");