POINT pos;
RECT clip_rect = gdigrab->clip_rect;
HWND hwnd = gdigrab->hwnd;
+ int vertres = GetDeviceCaps(gdigrab->source_hdc, VERTRES);
+ int desktopvertres = GetDeviceCaps(gdigrab->source_hdc, DESKTOPVERTRES);
info.hbmMask = NULL;
info.hbmColor = NULL;
}
}
+ //that would keep the correct location of mouse with hidpi screens
+ pos.x = pos.x * desktopvertres / vertres;
+ pos.y = pos.y * desktopvertres / vertres;
+
av_log(s1, AV_LOG_DEBUG, "Cursor pos (%li,%li) -> (%li,%li)\n",
ci.ptScreenPos.x, ci.ptScreenPos.y, pos.x, pos.y);