mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[WIN32SS:ENG] Make gpPrimaryGraphicsDevice variable static
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
DBG_DEFAULT_CHANNEL(EngDev);
|
||||
|
||||
PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
|
||||
static PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
|
||||
static PGRAPHICS_DEVICE gpVgaGraphicsDevice;
|
||||
|
||||
static PGRAPHICS_DEVICE gpGraphicsDeviceFirst = NULL;
|
||||
|
||||
@@ -8,8 +8,6 @@ NTAPI
|
||||
PDEVOBJ_vRefreshModeList(
|
||||
PPDEVOBJ ppdev);
|
||||
|
||||
extern PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
|
||||
|
||||
VOID
|
||||
APIENTRY
|
||||
EngFileWrite(
|
||||
|
||||
@@ -895,7 +895,7 @@ PDEVOBJ_lChangeDisplaySettings(
|
||||
}
|
||||
else if (RequestedMode)
|
||||
{
|
||||
pGraphicsDevice = gpPrimaryGraphicsDevice;
|
||||
pGraphicsDevice = EngpFindGraphicsDevice(NULL, 0);
|
||||
if (!pGraphicsDevice)
|
||||
{
|
||||
ERR("Wrong device'\n");
|
||||
|
||||
Reference in New Issue
Block a user