Author: jgardou
Date: Thu Jan 9 23:11:03 2014
New Revision: 61577
URL:
http://svn.reactos.org/svn/reactos?rev=61577&view=rev
Log:
[WIN32K]
- Don't be so nitpicky about display frequency when setting up display driver.
Fixes vmare letter stamp behaviour after graphics driver installation
Modified:
trunk/reactos/win32ss/gdi/eng/device.c
Modified: trunk/reactos/win32ss/gdi/eng/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/device.c?r…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/device.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/device.c [iso-8859-1] Thu Jan 9 23:11:03 2014
@@ -50,6 +50,7 @@
PDEVMODEINFO pdminfo;
PDEVMODEW pdm, pdmEnd;
PLDEVOBJ pldev;
+ BOOLEAN bModeMatch = FALSE;
TRACE("EngpRegisterGraphicsDevice(%wZ)\n", pustrDeviceName);
@@ -185,11 +186,10 @@
}
TRACE("Looking for mode %lux%lux%lu(%lu Hz)\n",
- pdm->dmDeviceName,
- pdm->dmPelsWidth,
- pdm->dmPelsHeight,
- pdm->dmBitsPerPel,
- pdm->dmDisplayFrequency);
+ pdmDefault->dmPelsWidth,
+ pdmDefault->dmPelsHeight,
+ pdmDefault->dmBitsPerPel,
+ pdmDefault->dmDisplayFrequency);
/* Loop through all DEVMODEINFOs */
for (pdminfo = pGraphicsDevice->pdevmodeInfo, i = 0;
@@ -211,14 +211,19 @@
pdm->dmBitsPerPel,
pdm->dmDisplayFrequency);
/* Compare with the default entry */
- if (pdm->dmBitsPerPel == pdmDefault->dmBitsPerPel &&
+ if (!bModeMatch &&
+ pdm->dmBitsPerPel == pdmDefault->dmBitsPerPel &&
pdm->dmPelsWidth == pdmDefault->dmPelsWidth &&
- pdm->dmPelsHeight == pdmDefault->dmPelsHeight &&
- pdm->dmDisplayFrequency == pdmDefault->dmDisplayFrequency)
+ pdm->dmPelsHeight == pdmDefault->dmPelsHeight)
{
pGraphicsDevice->iDefaultMode = i;
pGraphicsDevice->iCurrentMode = i;
TRACE("Found default entry: %lu '%ls'\n", i,
pdm->dmDeviceName);
+ if (pdm->dmDisplayFrequency == pdmDefault->dmDisplayFrequency)
+ {
+ /* Uh oh, even the display frequency matches. */
+ bModeMatch = TRUE;
+ }
}
/* Initialize the entry */