[WIN32SS:ENG] Make gpPrimaryGraphicsDevice variable static

This commit is contained in:
Hervé Poussineau
2024-10-14 23:26:11 +02:00
parent 6e71e94242
commit b4e781d72d
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
DBG_DEFAULT_CHANNEL(EngDev);
PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
static PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
static PGRAPHICS_DEVICE gpVgaGraphicsDevice;
static PGRAPHICS_DEVICE gpGraphicsDeviceFirst = NULL;
-2
View File
@@ -8,8 +8,6 @@ NTAPI
PDEVOBJ_vRefreshModeList(
PPDEVOBJ ppdev);
extern PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
VOID
APIENTRY
EngFileWrite(
+1 -1
View File
@@ -895,7 +895,7 @@ PDEVOBJ_lChangeDisplaySettings(
}
else if (RequestedMode)
{
pGraphicsDevice = gpPrimaryGraphicsDevice;
pGraphicsDevice = EngpFindGraphicsDevice(NULL, 0);
if (!pGraphicsDevice)
{
ERR("Wrong device'\n");