mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 01:48:09 +00:00
[idd] driver: added files missed in the last commit
This commit is contained in:
32
idd/LGIdd/CSettings.h
Normal file
32
idd/LGIdd/CSettings.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
#include <windows.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
class CSettings
|
||||
{
|
||||
public:
|
||||
struct DisplayMode
|
||||
{
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
unsigned refresh;
|
||||
bool preferred;
|
||||
};
|
||||
typedef std::vector<DisplayMode> DisplayModes;
|
||||
|
||||
CSettings();
|
||||
|
||||
void LoadModes();
|
||||
const DisplayModes& GetDisplayModes() { return m_displayModes; }
|
||||
void SetExtraMode(const DisplayMode & mode);
|
||||
bool GetExtraMode(DisplayMode & mode);
|
||||
|
||||
private:
|
||||
DisplayModes m_displayModes;
|
||||
|
||||
bool ReadModesValue(std::vector<std::wstring> &out) const;
|
||||
bool ParseModeString(const std::wstring& in, DisplayMode& out);
|
||||
};
|
||||
|
||||
extern CSettings g_settings;
|
Reference in New Issue
Block a user