get display DPI info to scale mouse movement

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-01-05 09:03:29 +11:00
1 parent 0bd5f0b2f1
commit 7e4d323427
10 files changed
+123 -36

No files matched your search

+8 -7
View File
@@ -186,13 +186,14 @@ static int frameThread(void * opaque)
continue;
}
fi->formatVer = frame.formatVer;
fi->width = frame.width;
fi->height = frame.height;
fi->stride = frame.stride;
fi->pitch = frame.pitch;
fi->offset = pageSize - FrameBufferStructSize;
frameValid = true;
fi->formatVer = frame.formatVer;
fi->width = frame.width;
fi->height = frame.height;
fi->stride = frame.stride;
fi->pitch = frame.pitch;
fi->offset = pageSize - FrameBufferStructSize;
fi->mouseScalePercent = app.iface->getMouseScale();
frameValid = true;
// put the framebuffer on the border of the next page
// this is to allow for aligned DMA transfers by the receiver