feat: 实现多屏幕支持

This commit is contained in:
Xu Liu 2021-12-19 17:47:57 +08:00
commit d68a2e0622
12 changed files with 110 additions and 35 deletions

View file

@ -98,6 +98,7 @@ API_DECLSPEC const char* WINAPI Run(
float cursorZoomFactor, // 负数和 0和源原窗口相同正数缩放比例
UINT cursorInterpolationMode, // 0最近邻1双线性
UINT adapterIdx,
UINT multiMonitorMode, // 0最近 1相交 2所有
UINT flags
) {
if (!hwndSrc || !IsWindow(hwndSrc)) {
@ -123,7 +124,7 @@ API_DECLSPEC const char* WINAPI Run(
App& app = App::GetInstance();
if (!app.Run(hwndSrc, effectsJson, captureMode, frameRate,
cursorZoomFactor, cursorInterpolationMode, adapterIdx, flags)
cursorZoomFactor, cursorInterpolationMode, adapterIdx, multiMonitorMode, flags)
) {
// 初始化失败
SPDLOG_LOGGER_INFO(logger, "App.Run 失败");