Merge pull request #99 from WXRIW/fix/issue/94

[fix] 修复白板模式中放映的问题 (Fix #94)
This commit is contained in:
XY Wang 2023-11-14 18:51:29 +08:00 committed by GitHub
commit c054e85880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2240,6 +2240,8 @@ namespace Ink_Canvas
LogHelper.WriteLogToFile("PowerPoint Application Slide Show Begin", LogHelper.LogType.Event); LogHelper.WriteLogToFile("PowerPoint Application Slide Show Begin", LogHelper.LogType.Event);
Application.Current.Dispatcher.Invoke(() => Application.Current.Dispatcher.Invoke(() =>
{ {
// 退出画板模式
BtnSwitch_Click(null, null);
//调整颜色 //调整颜色
double screenRatio = SystemParameters.PrimaryScreenWidth / SystemParameters.PrimaryScreenHeight; double screenRatio = SystemParameters.PrimaryScreenWidth / SystemParameters.PrimaryScreenHeight;
if (Math.Abs(screenRatio - 16.0 / 9) <= -0.01) if (Math.Abs(screenRatio - 16.0 / 9) <= -0.01)