完善了双指缩放,优化了截图

This commit is contained in:
snltty
2023-10-25 16:43:22 +08:00
parent 04cf6a1f97
commit 570ab3e60f
32 changed files with 628 additions and 358 deletions

View File

@@ -26,6 +26,7 @@ namespace cmonitor.server.api.services
{
bool connectionRes = signCaching.Get(report.Names[i], out SignCacheInfo cache) && cache.Connected;
bool reportRes = cache.GetScreen(config.ScreenDelay) && Interlocked.CompareExchange(ref cache.ScreenFlag, 0, 1) == 1;
if (connectionRes && reportRes)
{
cache.UpdateScreen();
@@ -86,6 +87,7 @@ namespace cmonitor.server.api.services
return true;
}
}
public sealed class ScreenReportInfo