[host] fixed support for high DPI desktops (4K+)

This commit is contained in:
Geoffrey McRae
2017-12-08 06:24:17 +11:00
parent 65ba649b36
commit a61293b551
8 changed files with 133 additions and 70 deletions

View File

@@ -34,6 +34,13 @@ struct FrameInfo
int mouseX, mouseY;
};
enum GrabStatus
{
GRAB_STATUS_OK,
GRAB_STATUS_REINIT,
GRAB_STATUS_ERROR
};
typedef std::vector<const char *> CaptureOptions;
__interface ICapture
@@ -43,7 +50,8 @@ public:
bool Initialize(CaptureOptions * options);
void DeInitialize();
bool ReInitialize();
enum FrameType GetFrameType();
size_t GetMaxFrameSize();
bool GrabFrame(struct FrameInfo & frame);
enum GrabStatus GrabFrame(struct FrameInfo & frame);
};