[WIN32SS:ENG] Make gpPrimaryGraphicsDevice variable static

This commit is contained in:
Hervé Poussineau 2024-10-13 21:35:28 +02:00
parent 6e71e94242
commit b4e781d72d
3 changed files with 2 additions and 4 deletions

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;

View file

@ -8,8 +8,6 @@ NTAPI
PDEVOBJ_vRefreshModeList(
PPDEVOBJ ppdev);
extern PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
VOID
APIENTRY
EngFileWrite(

View file

@ -895,7 +895,7 @@ PDEVOBJ_lChangeDisplaySettings(
}
else if (RequestedMode)
{
pGraphicsDevice = gpPrimaryGraphicsDevice;
pGraphicsDevice = EngpFindGraphicsDevice(NULL, 0);
if (!pGraphicsDevice)
{
ERR("Wrong device'\n");