Skip to content

Commit b4e781d

Browse files
committed
[WIN32SS:ENG] Make gpPrimaryGraphicsDevice variable static
1 parent 6e71e94 commit b4e781d

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

win32ss/gdi/eng/device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
DBG_DEFAULT_CHANNEL(EngDev);
1414

15-
PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
15+
static PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
1616
static PGRAPHICS_DEVICE gpVgaGraphicsDevice;
1717

1818
static PGRAPHICS_DEVICE gpGraphicsDeviceFirst = NULL;

win32ss/gdi/eng/device.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ NTAPI
88
PDEVOBJ_vRefreshModeList(
99
PPDEVOBJ ppdev);
1010

11-
extern PGRAPHICS_DEVICE gpPrimaryGraphicsDevice;
12-
1311
VOID
1412
APIENTRY
1513
EngFileWrite(

win32ss/gdi/eng/pdevobj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ PDEVOBJ_lChangeDisplaySettings(
895895
}
896896
else if (RequestedMode)
897897
{
898-
pGraphicsDevice = gpPrimaryGraphicsDevice;
898+
pGraphicsDevice = EngpFindGraphicsDevice(NULL, 0);
899899
if (!pGraphicsDevice)
900900
{
901901
ERR("Wrong device'\n");

0 commit comments

Comments
 (0)