-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreenManager.h
More file actions
34 lines (28 loc) · 798 Bytes
/
ScreenManager.h
File metadata and controls
34 lines (28 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
///////////////////////////////////////////////////////////
// Manages screens, needed to change resolution on full
// screen mode, on "slow" computers
///////////////////////////////////////////////////////////
#ifndef __HEADER_SCREENMANAGER__
#define __HEADER_SCREENMANAGER__
#ifdef _WIN32
#include <windows.h>
#endif
class CScreenManager
{
public:
// Constructor and destructor
CScreenManager();
~CScreenManager();
// Set low resolution (1366x768 or 1024x768)
bool SetLowResolution();
// Reset to "normal" resolution
void ResetResolution();
private:
// The main screen where the resolution has to be changed
DISPLAY_DEVICE m_MainDevice;
// Initialisation status
bool m_bInit;
// Is low resolution in use or not
bool m_bIsLowRes;
};
#endif