get display DPI info to scale mouse movement

This commit is contained in:
Quantum
2021-01-04 16:01:24 -05:00
committed by Geoffrey McRae
parent 0bd5f0b2f1
commit 7e4d323427
10 changed files with 123 additions and 36 deletions

View File

@@ -169,6 +169,11 @@ static unsigned int xcb_getMaxFrameSize()
return this->width * this->height * 4;
}
static unsigned int xcb_getMouseScale()
{
return 100;
}
static CaptureResult xcb_capture()
{
assert(this);
@@ -241,6 +246,7 @@ struct CaptureInterface Capture_XCB =
.deinit = xcb_deinit,
.free = xcb_free,
.getMaxFrameSize = xcb_getMaxFrameSize,
.getMouseScale = xcb_getMouseScale,
.capture = xcb_capture,
.waitFrame = xcb_waitFrame,
.getFrame = xcb_getFrame,