[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); DBG_DEFAULT_CHANNEL(EngDev);
PGRAPHICS_DEVICE gpPrimaryGraphicsDevice; static PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
static PGRAPHICS_DEVICE gpVgaGraphicsDevice; static PGRAPHICS_DEVICE gpVgaGraphicsDevice;
static PGRAPHICS_DEVICE gpGraphicsDeviceFirst = NULL; static PGRAPHICS_DEVICE gpGraphicsDeviceFirst = NULL;

View file

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

View file

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