File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ PDEVOBJ_vRefreshModeList(
266
266
PGRAPHICS_DEVICE pGraphicsDevice ;
267
267
PDEVMODEINFO pdminfo , pdmiNext ;
268
268
DEVMODEW dmDefault ;
269
+ DEVMODEW dmCurrent ;
269
270
270
271
/* Lock the PDEV */
271
272
EngAcquireSemaphore (ppdev -> hsemDevLock );
@@ -274,6 +275,7 @@ PDEVOBJ_vRefreshModeList(
274
275
275
276
/* Remember our default mode */
276
277
dmDefault = * pGraphicsDevice -> pDevModeList [pGraphicsDevice -> iDefaultMode ].pdm ;
278
+ dmCurrent = * ppdev -> pdmwDev ;
277
279
278
280
/* Clear out the modes */
279
281
for (pdminfo = pGraphicsDevice -> pdevmodeInfo ;
@@ -293,7 +295,7 @@ PDEVOBJ_vRefreshModeList(
293
295
DPRINT1 ("FIXME: EngpPopulateDeviceModeList failed, we just destroyed a perfectly good mode list\n" );
294
296
}
295
297
296
- ppdev -> pdmwDev = pGraphicsDevice -> pDevModeList [ pGraphicsDevice -> iCurrentMode ]. pdm ;
298
+ ppdev -> pdmwDev = PDEVOBJ_pdmMatchDevMode ( ppdev , & dmCurrent ) ;
297
299
298
300
/* Unlock PDEV */
299
301
EngReleaseSemaphore (ppdev -> hsemDevLock );
You can’t perform that action at this time.
0 commit comments