implemented improved video modes for win.cpp

This commit is contained in:
aap 2020-04-29 18:08:54 +02:00
parent 474b0418d3
commit 804b022e67
4 changed files with 144 additions and 5 deletions

View file

@ -533,6 +533,14 @@ public:
int32 m_nCurrSaveSlot;
int32 m_nScreenChangeDelayTimer;
#ifdef IMPROVED_VIDEOMODE
int32 m_nPrefsWidth;
int32 m_nPrefsHeight;
int32 m_nPrefsDepth;
int32 m_nPrefsWindowed;
int32 m_nPrefsSubsystem;
#endif
public:
bool GetIsMenuActive() {return !!m_bMenuActive;}
@ -645,7 +653,9 @@ public:
// uint8 GetNumberOfMenuOptions();
};
#ifndef IMPROVED_VIDEOMODE
static_assert(sizeof(CMenuManager) == 0x564, "CMenuManager: error");
#endif
extern CMenuManager FrontEndMenuManager;
extern unsigned long _dwOperatingSystemVersion;