mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] fixed support for high DPI desktops (4K+)
This commit is contained in:
@@ -38,16 +38,25 @@ namespace Capture
|
||||
|
||||
bool Initialize(CaptureOptions * options);
|
||||
void DeInitialize();
|
||||
bool ReInitialize()
|
||||
{
|
||||
DeInitialize();
|
||||
/*
|
||||
DXGI needs some time when mode switches occur, failing to do so causes
|
||||
failure to start and exceptions internal to DXGI
|
||||
*/
|
||||
Sleep(200);
|
||||
return Initialize(m_options);
|
||||
}
|
||||
|
||||
enum FrameType GetFrameType();
|
||||
enum FrameComp GetFrameCompression();
|
||||
size_t GetMaxFrameSize();
|
||||
bool GrabFrame(struct FrameInfo & frame);
|
||||
enum GrabStatus GrabFrame(struct FrameInfo & frame);
|
||||
|
||||
private:
|
||||
CaptureOptions * m_options;
|
||||
|
||||
bool ReInitialize();
|
||||
|
||||
bool m_initialized;
|
||||
unsigned int m_width;
|
||||
unsigned int m_height;
|
||||
|
Reference in New Issue
Block a user