From 56da974d0c1e4bf1a8167ea864a2caa51d9e007d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 6 May 2010 11:46:48 +0000 Subject: [PATCH] [WIN32K] - Assign a correct pdevmode to the pdevobj when creating it. svn path=/branches/reactos-yarotows/; revision=47114 --- subsystems/win32/win32k/eng/pdevobj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsystems/win32/win32k/eng/pdevobj.c b/subsystems/win32/win32k/eng/pdevobj.c index 5159db06925..e6a755b1f28 100644 --- a/subsystems/win32/win32k/eng/pdevobj.c +++ b/subsystems/win32/win32k/eng/pdevobj.c @@ -259,7 +259,8 @@ EngpCreatePDEV( ppdev->pGraphicsDevice = pGraphicsDevice; ppdev->hsemDevLock = EngCreateSemaphore(); - ppdev->pdmwDev = pGraphicsDevice->pDevModeList[pGraphicsDevice->iCurrentMode].pdm; + // Should we change the ative mode of pGraphicsDevice ? + ppdev->pdmwDev = PDEVOBJ_pdmMatchDevMode(ppdev, pdm) ; /* FIXME! */ ppdev->flFlags = PDEV_DISPLAY;