mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 17:38:10 +00:00
[idd] driver: improve display mode support and resolution switch
This commit is contained in:
@@ -83,6 +83,8 @@ private:
|
||||
bool preferred;
|
||||
};
|
||||
std::vector<DisplayMode> m_displayModes;
|
||||
DisplayMode m_customMode = {};
|
||||
bool m_setCustomMode = false;
|
||||
|
||||
public:
|
||||
CIndirectDeviceContext(_In_ WDFDEVICE wdfDevice) :
|
||||
@@ -92,10 +94,13 @@ public:
|
||||
|
||||
bool SetupLGMP(size_t alignSize);
|
||||
|
||||
void PopulateDefaultModes(bool setDefaultMode);
|
||||
void InitAdapter();
|
||||
void FinishInit(UINT connectorIndex);
|
||||
void ReplugMonitor();
|
||||
void UnassignSwapChain();
|
||||
|
||||
void OnAssignSwapChain();
|
||||
void OnUnassignedSwapChain();
|
||||
|
||||
NTSTATUS ParseMonitorDescription(
|
||||
const IDARG_IN_PARSEMONITORDESCRIPTION* inArgs, IDARG_OUT_PARSEMONITORDESCRIPTION* outArgs);
|
||||
@@ -104,6 +109,8 @@ public:
|
||||
NTSTATUS MonitorQueryTargetModes(
|
||||
const IDARG_IN_QUERYTARGETMODES* inArgs, IDARG_OUT_QUERYTARGETMODES* outArgs);
|
||||
|
||||
void SetResolution(int width, int height);
|
||||
|
||||
size_t GetAlignSize() { return m_alignSize; }
|
||||
size_t GetMaxFrameSize() { return m_maxFrameSize; }
|
||||
|
||||
|
Reference in New Issue
Block a user