- More research is required to fix NtGdiSetPixelFormat, so removing disputed information.

svn path=/trunk/; revision=41275
This commit is contained in:
James Tabor
2009-06-04 01:33:43 +00:00
parent 23e3456582
commit 463f40fcd5
@@ -162,6 +162,9 @@ NtGdiSetPixelFormat(
ppdev = pdc->ppdev;
/*
WndObj is needed so exit on NULL pointer.
*/
if (pWndObj) pso = pWndObj->psoOwner;
else
{
@@ -169,18 +172,6 @@ NtGdiSetPixelFormat(
goto Exit;
}
if (!pso)
{
/*
Based on some rules! InfoDC to DC or, based on wiki information!
All pointers, it's a "must be!", (CONTAINING_RECORD +10h = SURFOBJ), the
pointer will start at SURFOBJ of the SURFACE structure.
*/
pso = (SURFOBJ *)pdc->dclevel.pSurface;
if (!pso) pso = pdc->pSurfInfo;
if (!pso) pso = ppdev->pSurface;
}
if (ppdev->flFlags & PDEV_META_DEVICE)
{
UNIMPLEMENTED;