fix: 细节优化

This commit is contained in:
Xu Liu 2021-11-08 20:46:24 +08:00
commit 2de06c5246
3 changed files with 4 additions and 2 deletions

View file

@ -38,6 +38,8 @@ bool GraphicsCaptureFrameSource::Initialize() {
const RECT& srcClient = App::GetInstance().GetSrcClientRect();
// 在源窗口存在 DPI 缩放时有时会有一像素的偏移(取决于窗口在屏幕上的位置)
// 可能是 DwmGetWindowAttribute 的 bug
_frameInWnd = {
UINT(srcClient.left - srcRect.left),
UINT(srcClient.top - srcRect.top),