mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 11:54:47 +00:00
gdi32: Make sure the DC is up-to-date before accessing the pixel format.
This commit is contained in:
parent
d5ccbe2ba4
commit
7e2e30bade
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user