diff --git a/NVIDIA/NVIDIA.cpp b/NVIDIA/NVIDIA.cpp
index 0c48200..5e232f2 100644
--- a/NVIDIA/NVIDIA.cpp
+++ b/NVIDIA/NVIDIA.cpp
@@ -26,7 +26,7 @@
Preferences pref = {};
pref.featuresToLoad = new Feature[2]{ kFeatureReflex, kFeaturePCL };
pref.numFeaturesToLoad = sizeof(*pref.featuresToLoad) / sizeof(Feature);
- pref.engineVersion = "1.2.0";
+ pref.engineVersion = "1.2.1-experimental1";
pref.renderAPI = RenderAPI::eD3D11;
if (SL_FAILED(r, slInit(pref)))
{
diff --git a/Qwilight/Assets/AMD64/CChromaEditorLibrary64.dll b/Qwilight/Assets/AMD64/CChromaEditorLibrary64.dll
new file mode 100644
index 0000000..ff5ce36
--- /dev/null
+++ b/Qwilight/Assets/AMD64/CChromaEditorLibrary64.dll
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7523335cf3be105f73d0d60703af0bfd8bd5db1989218c682baf66346cd51634
+size 440720
diff --git a/Qwilight/Assets/AMD64/LogitechLedEnginesWrapper.dll b/Qwilight/Assets/AMD64/LogitechLedEnginesWrapper.dll
new file mode 100644
index 0000000..815b40c
--- /dev/null
+++ b/Qwilight/Assets/AMD64/LogitechLedEnginesWrapper.dll
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:46a0773e5ae6ef5b24557f3051e18a62527c7b2c133360dfb21522cbfe9cbdd1
+size 20104
diff --git a/Qwilight/Assets/AMD64/Microsoft.Graphics.Canvas.dll b/Qwilight/Assets/AMD64/Microsoft.Graphics.Canvas.dll
index 9457162..4d88ff4 100644
--- a/Qwilight/Assets/AMD64/Microsoft.Graphics.Canvas.dll
+++ b/Qwilight/Assets/AMD64/Microsoft.Graphics.Canvas.dll
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:578bf21c2b2088fd0d0b17b4cbb5ee23a7df4c56a3f9da1cd2263e9948bcae6e
-size 1647616
+oid sha256:981ad931946a3438004e93d1e600532fe942cf4c735019038540a2adb247666b
+size 1656832
diff --git a/Qwilight/Assets/ARM64/Microsoft.Graphics.Canvas.dll b/Qwilight/Assets/ARM64/Microsoft.Graphics.Canvas.dll
index 66d2705..8d6bbfd 100644
--- a/Qwilight/Assets/ARM64/Microsoft.Graphics.Canvas.dll
+++ b/Qwilight/Assets/ARM64/Microsoft.Graphics.Canvas.dll
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a05a044f62fa93fb8beb3f2fa6436d40674461fb1836d2aab9fe89e51c3285cb
-size 2208256
+oid sha256:96e80a12391a654b04604c508033d159c5a1d449030bcfccb436237f4aaca978
+size 2203648
diff --git a/Qwilight/Compute/DefaultCompute.cs b/Qwilight/Compute/DefaultCompute.cs
index 4f84e73..042e971 100644
--- a/Qwilight/Compute/DefaultCompute.cs
+++ b/Qwilight/Compute/DefaultCompute.cs
@@ -1147,7 +1147,7 @@
if (CanPause)
{
SetPause = true;
- if (ValidatedTotalNotes > 0 && _validJudgedNotes > 0 && LastStatusValue == LastStatus.Not)
+ if (ValidatedTotalNotes > 0 && LastStatusValue == LastStatus.Not && _validJudgedNotes > 0)
{
_isPaused = true;
}
@@ -1690,7 +1690,7 @@
var randomDefaultInputs = Component.DefaultInputs[(int)InputMode].ToArray();
var inputCount = Component.InputCounts[(int)InputMode];
var postableItemBand = 0;
- var postableHitPointsCount = 0;
+ var postableHitPointsLevelCount = 0;
var postableJudgmentCount = 0;
_valueComponent = new(NoteFile.LevyingBPM, Comment.LoopUnit);
@@ -1896,12 +1896,14 @@
{
case PostableItem.Variety.PositiveJudgment:
PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.NegativeJudgment]].Halt();
+ postableJudgmentCount = 0;
break;
case PostableItem.Variety.PositiveHitPoints:
PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.NegativeHitPoints]].Halt();
break;
case PostableItem.Variety.PositiveHitPointsLevel:
PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.NegativeHitPointsLevel]].Halt();
+ postableHitPointsLevelCount = 0;
break;
case PostableItem.Variety.PositiveAegis:
foreach (var (postableItem, postableItemStatus) in PostableItemStatusMap)
@@ -1921,12 +1923,14 @@
break;
case PostableItem.Variety.NegativeJudgment:
PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.PositiveJudgment]].Halt();
+ postableJudgmentCount = 0;
break;
case PostableItem.Variety.NegativeHitPoints:
PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.PositiveHitPoints]].Halt();
break;
case PostableItem.Variety.NegativeHitPointsLevel:
PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.PositiveHitPointsLevel]].Halt();
+ postableHitPointsLevelCount = 0;
break;
case PostableItem.Variety.Negative4D:
PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.NegativeZip]].Halt();
@@ -2029,13 +2033,13 @@
{
case PostableItem.Variety.PositiveHitPointsLevel:
case PostableItem.Variety.NegativeHitPointsLevel:
- while (postableHitPointsCount > 0)
+ while (postableHitPointsLevelCount > 0)
{
- --postableHitPointsCount;
+ --postableHitPointsLevelCount;
if (postableItemStatus.Elapse(1000.0 / 60))
{
ModeComponentValue.HitPointsModeValue = ModeComponent.HitPointsMode.Default;
- postableHitPointsCount = 0;
+ postableHitPointsLevelCount = 0;
break;
}
}
@@ -2904,18 +2908,15 @@
var judgedNoteDataValue = judgedNoteData.Value;
var targetInput = judgedNote.TargetInput;
var judged = judgedNoteDataValue.Judged;
- if (judged != Component.Judged.Lowest && PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.PositiveJudgment]].IsHandling)
+ if (judged != Component.Judged.Lowest && judged != Component.Judged.Highest && PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.PositiveJudgment]].IsHandling)
{
++postableJudgmentCount;
judged = Component.Judged.Highest;
}
- if (judged != Component.Judged.Highest && PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.NegativeJudgment]].IsHandling)
+ if (judged != Component.Judged.Lowest && judged != Component.Judged.Higher && judged != Component.Judged.Highest && PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.NegativeJudgment]].IsHandling)
{
++postableJudgmentCount;
- if (judged != Component.Judged.Higher)
- {
- judged = Component.Judged.Lowest;
- }
+ judged = Component.Judged.Lowest;
}
switch (judgedNoteDataValue.IDValue)
{
@@ -3912,7 +3913,7 @@
}
if (PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.PositiveHitPointsLevel]].IsHandling || PostableItemStatusMap[PostableItem.Values[(int)PostableItem.Variety.NegativeHitPointsLevel]].IsHandling)
{
- ++postableHitPointsCount;
+ ++postableHitPointsLevelCount;
}
LastJudged = judged;
Point.TargetValue = (SavedPoint += Component.PointMap[(int)_pointMapDate, (int)judged]) / (TotalPoint += Component.PointMap[(int)_pointMapDate, (int)Component.Judged.Highest]);
diff --git a/Qwilight/Microsoft.Graphics.Canvas.Interop.dll b/Qwilight/Microsoft.Graphics.Canvas.Interop.dll
index 468fa94..ca8780f 100644
--- a/Qwilight/Microsoft.Graphics.Canvas.Interop.dll
+++ b/Qwilight/Microsoft.Graphics.Canvas.Interop.dll
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0c173ddce3c4d148445ef73537712ade7aa93e7ff17cfe228ffe34bd4ebbecd4
-size 1101312
+oid sha256:dd0c4d68d70a583a528181cbff5d535b5a2e241cd814f3457899258c6ac28556
+size 1108480
diff --git a/Qwilight/PostableItem.cs b/Qwilight/PostableItem.cs
index f24b4e3..79b5afe 100644
--- a/Qwilight/PostableItem.cs
+++ b/Qwilight/PostableItem.cs
@@ -48,8 +48,8 @@
{
VarietyValue = Variety.PositiveHitPointsLevel,
IsPositive = true,
- LowestWait = 60.0,
- HighestWait = 1000.0
+ LowestWait = 1000.0,
+ HighestWait = 6000.0
},
new PostableItem
{
@@ -90,8 +90,8 @@
{
VarietyValue = Variety.NegativeHitPointsLevel,
IsPositive = false,
- LowestWait = 60.0,
- HighestWait = 1000.0
+ LowestWait = 1000.0,
+ HighestWait = 6000.0
},
new PostableItem
{
diff --git a/Qwilight/Qwilight.csproj b/Qwilight/Qwilight.csproj
index 8309b88..c1b2668 100644
--- a/Qwilight/Qwilight.csproj
+++ b/Qwilight/Qwilight.csproj
@@ -17,6 +17,7 @@
true
None
true
+ 10.0.22621.35-preview
Qwilight.View.QwilightClass
app.manifest
true
@@ -52,7 +53,7 @@
all
-
+
diff --git a/Qwilight/System/Configure/Configure.cs b/Qwilight/System/Configure/Configure.cs
index f79a6a2..7b3a81c 100644
--- a/Qwilight/System/Configure/Configure.cs
+++ b/Qwilight/System/Configure/Configure.cs
@@ -147,7 +147,7 @@
}
if (hwModeCollection.Contains(HwModeV2Value))
{
- OnSetHwModeV2Value();
+ OnSetHwModeValue();
}
else
{
@@ -523,10 +523,19 @@
{
OnPropertyChanged(nameof(DataCount3Paint));
OnPropertyChanged(nameof(DataCount3Text));
+ OnSetDataCount3();
}
}
}
+ void OnSetDataCount3()
+ {
+ if (_isLoaded)
+ {
+ DrawingSystem.Instance.OnModified();
+ }
+ }
+
public Brush DataCount3Paint => Paints.PointPaints[DataCount3 ? 1 : 0];
public string DataCount3Text => DataCount3 ? LanguageSystem.Instance.DataCount3Text : LanguageSystem.Instance.NotDataCount3Text;
@@ -846,12 +855,12 @@
{
if (SetProperty(ref _hwModeValue, value))
{
- OnSetHwModeV2Value();
+ OnSetHwModeValue();
}
}
}
- public void OnSetHwModeV2Value()
+ void OnSetHwModeValue()
{
if (_isLoaded)
{
@@ -3525,8 +3534,8 @@
DefaultInputBundlesV6.StandardInputs[InputStandardViewModel.PostItem0].Data = VirtualKey.V;
DefaultInputBundlesV6.StandardInputs[InputStandardViewModel.PostItem1].Data = VirtualKey.N;
DefaultInputBundlesV6.StandardInputs[InputStandardViewModel.VeilDrawing].Data = (VirtualKey)192;
- DefaultInputBundlesV6.StandardInputs[InputStandardViewModel.HalfMultiplier].Data = VirtualKey.Number1;
- DefaultInputBundlesV6.StandardInputs[InputStandardViewModel._2XMultiplier].Data = VirtualKey.Number2;
+ DefaultInputBundlesV6.StandardInputs[InputStandardViewModel.HalfMultiplier].Data = (VirtualKey)219;
+ DefaultInputBundlesV6.StandardInputs[InputStandardViewModel._2XMultiplier].Data = (VirtualKey)221;
}
if (isInit || Utility.IsLowerDate(Date, 1, 16, 25))
{
diff --git a/Qwilight/System/DefaultControllerSystem/DefaultControllerSystem.cs b/Qwilight/System/DefaultControllerSystem/DefaultControllerSystem.cs
index 2f9e0a8..0a35062 100644
--- a/Qwilight/System/DefaultControllerSystem/DefaultControllerSystem.cs
+++ b/Qwilight/System/DefaultControllerSystem/DefaultControllerSystem.cs
@@ -109,7 +109,7 @@
var input = Array.IndexOf(Configure.Instance.DefaultInputBundlesV6.StandardInputs, defaultInput);
if (ViewModels.Instance.ConfigureValue.IsOpened)
{
- LastDefaultControllerInput = $"{(isInput ? "+" : "-")} {nameof(Key)}: {rawInput}";
+ LastDefaultControllerInput = $"{nameof(Key)}: {(isInput ? "+" : "-")}{defaultInput}";
}
if (isInput)
{
diff --git a/Qwilight/System/DrawingSystem/DrawingSystem.cs b/Qwilight/System/DrawingSystem/DrawingSystem.cs
index 71d0d1d..1fc3db4 100644
--- a/Qwilight/System/DrawingSystem/DrawingSystem.cs
+++ b/Qwilight/System/DrawingSystem/DrawingSystem.cs
@@ -3091,64 +3091,65 @@
public void OnModified()
{
var windowArea = StrongReferenceMessenger.Default.Send().Response;
- var windowAreaPosition0 = windowArea.X;
- var windowAreaPosition1 = windowArea.Y;
var windowAreaLength = windowArea.Width;
var windowAreaHeight = windowArea.Height;
- var mainViewModel = ViewModels.Instance.MainValue;
- var defaultLength = (float)mainViewModel.DefaultLength;
- var defaultHeight = (float)mainViewModel.DefaultHeight;
- var dataCount = Configure.Instance.DataCount;
-
- var rateDefault = defaultLength / defaultHeight;
- var rateWindowArea = (float)windowAreaLength / (float)windowAreaHeight;
- var enlargedLength = defaultLength;
- var enlargedHeight = defaultHeight;
-
- if (rateDefault > rateWindowArea)
+ if (windowAreaLength > 0 && windowAreaHeight > 0)
{
- enlargedHeight = defaultHeight * (rateDefault / rateWindowArea);
- _drawingMargin0 = 0F;
- _drawingMargin1 = (enlargedHeight - defaultHeight) / 2;
- }
- else
- {
- enlargedLength = defaultLength * (rateWindowArea / rateDefault);
- _drawingMargin0 = (enlargedLength - defaultLength) / 2;
- _drawingMargin1 = 0F;
- }
- var defaultDPI = 96F * Math.Max(windowAreaLength / enlargedLength, windowAreaHeight / enlargedHeight);
+ var mainViewModel = ViewModels.Instance.MainValue;
+ var defaultLength = (float)mainViewModel.DefaultLength;
+ var defaultHeight = (float)mainViewModel.DefaultHeight;
+ var dataCount = Configure.Instance.DataCount;
- if (_rawTargetSystem == null)
- {
- lock (_d2D1CSX)
+ var rateDefault = defaultLength / defaultHeight;
+ var rateWindowArea = (float)windowAreaLength / (float)windowAreaHeight;
+ var enlargedLength = defaultLength;
+ var enlargedHeight = defaultHeight;
+
+ if (rateDefault > rateWindowArea)
{
- _targetSystem?.Dispose();
- _targetSystem = new(CanvasDevice.GetSharedDevice(), enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, CanvasAlphaMode.Ignore);
- _rawTargetSystemData = new byte[(int)(defaultLength * (defaultDPI / 96F) * defaultHeight * (defaultDPI / 96F) * 4)];
- _targetSystemData = _rawTargetSystemData.AsBuffer();
- _rawTargetSystem?.Dispose();
- _rawTargetSystem = new(CanvasDevice.GetSharedDevice(), enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, dataCount, CanvasAlphaMode.Ignore);
+ enlargedHeight = defaultHeight * (rateDefault / rateWindowArea);
+ _drawingMargin0 = 0F;
+ _drawingMargin1 = (enlargedHeight - defaultHeight) / 2;
}
- StrongReferenceMessenger.Default.Send(new SetD2DView
+ else
{
- D2DView = _rawTargetSystem
- });
- StrongReferenceMessenger.Default.Send();
- }
- else if (_rawTargetSystem.Size.Width != enlargedLength || _rawTargetSystem.Size.Height != enlargedHeight || _defaultDPI != defaultDPI || _rawTargetSystem.BufferCount != dataCount)
- {
- lock (_d2D1CSX)
- {
- _targetSystem?.Dispose();
- _targetSystem = new(CanvasDevice.GetSharedDevice(), enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, CanvasAlphaMode.Ignore);
- _rawTargetSystemData = new byte[(int)(defaultLength * (defaultDPI / 96F) * defaultHeight * (defaultDPI / 96F) * 4)];
- _targetSystemData = _rawTargetSystemData.AsBuffer();
- _rawTargetSystem.ResizeBuffers(enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, dataCount);
+ enlargedLength = defaultLength * (rateWindowArea / rateDefault);
+ _drawingMargin0 = (enlargedLength - defaultLength) / 2;
+ _drawingMargin1 = 0F;
}
- StrongReferenceMessenger.Default.Send();
+ var defaultDPI = 96F * Math.Max(windowAreaLength / enlargedLength, windowAreaHeight / enlargedHeight);
+
+ if (_rawTargetSystem == null)
+ {
+ lock (_d2D1CSX)
+ {
+ _targetSystem?.Dispose();
+ _targetSystem = new(CanvasDevice.GetSharedDevice(), enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, CanvasAlphaMode.Ignore);
+ _rawTargetSystemData = new byte[(int)(defaultLength * (defaultDPI / 96F) * defaultHeight * (defaultDPI / 96F) * 4)];
+ _targetSystemData = _rawTargetSystemData.AsBuffer();
+ _rawTargetSystem?.Dispose();
+ _rawTargetSystem = new(CanvasDevice.GetSharedDevice(), enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, dataCount, CanvasAlphaMode.Ignore);
+ }
+ StrongReferenceMessenger.Default.Send(new SetD2DView
+ {
+ D2DView = _rawTargetSystem
+ });
+ StrongReferenceMessenger.Default.Send();
+ }
+ else if (_rawTargetSystem.Size.Width != enlargedLength || _rawTargetSystem.Size.Height != enlargedHeight || _defaultDPI != defaultDPI || _rawTargetSystem.BufferCount != dataCount)
+ {
+ lock (_d2D1CSX)
+ {
+ _targetSystem?.Dispose();
+ _targetSystem = new(CanvasDevice.GetSharedDevice(), enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, CanvasAlphaMode.Ignore);
+ _rawTargetSystemData = new byte[(int)(defaultLength * (defaultDPI / 96F) * defaultHeight * (defaultDPI / 96F) * 4)];
+ _targetSystemData = _rawTargetSystemData.AsBuffer();
+ _rawTargetSystem.ResizeBuffers(enlargedLength, enlargedHeight, defaultDPI, DirectXPixelFormat.B8G8R8A8UIntNormalized, dataCount);
+ }
+ StrongReferenceMessenger.Default.Send();
+ }
+ _defaultDPI = defaultDPI;
}
- _defaultDPI = defaultDPI;
}
public DrawingItem Load(string drawingFilePath, IDrawingContainer drawingContainer)
diff --git a/Qwilight/View/MainWindow/MainWindow.xaml.cs b/Qwilight/View/MainWindow/MainWindow.xaml.cs
index 50766f6..1e733bf 100644
--- a/Qwilight/View/MainWindow/MainWindow.xaml.cs
+++ b/Qwilight/View/MainWindow/MainWindow.xaml.cs
@@ -76,8 +76,8 @@
var windowDPI = PInvoke.GetDpiForWindow(_handle) / 96.0;
var windowPosition0 = Configure.Instance.WindowPosition0V2;
var windowPosition1 = Configure.Instance.WindowPosition1V2;
- var windowLength = (int)(windowDPI * Configure.Instance.WindowLengthV2 + (windowInfo.rcWindow.right - windowInfo.rcWindow.left) - (windowInfo.rcClient.right - windowInfo.rcClient.left));
- var windowHeight = (int)(windowDPI * Configure.Instance.WindowHeightV2 + (windowInfo.rcWindow.bottom - windowInfo.rcWindow.top) - (windowInfo.rcClient.bottom - windowInfo.rcClient.top));
+ var windowLength = (int)(windowDPI * Configure.Instance.WindowLengthV2 + windowInfo.rcWindow.Width - windowInfo.rcClient.Width);
+ var windowHeight = (int)(windowDPI * Configure.Instance.WindowHeightV2 + windowInfo.rcWindow.Height - windowInfo.rcClient.Height);
if (windowPosition0 <= -windowLength)
{
windowPosition0 = 0;
@@ -190,8 +190,8 @@
PInvoke.GetWindowInfo(_handle, ref windowInfo);
var windowDPI = PInvoke.GetDpiForWindow(_handle) / 96.0;
PInvoke.SetWindowPos(_handle, HWND.Null, 0, 0,
- (int)(windowDPI * Configure.Instance.WindowLengthV2 + (windowInfo.rcWindow.right - windowInfo.rcWindow.left) - (windowInfo.rcClient.right - windowInfo.rcClient.left)),
- (int)(windowDPI * Configure.Instance.WindowHeightV2 + (windowInfo.rcWindow.bottom - windowInfo.rcWindow.top) - (windowInfo.rcClient.bottom - windowInfo.rcClient.top)),
+ (int)(windowDPI * Configure.Instance.WindowLengthV2 + windowInfo.rcWindow.Width - windowInfo.rcClient.Width),
+ (int)(windowDPI * Configure.Instance.WindowHeightV2 + windowInfo.rcWindow.Height - windowInfo.rcClient.Height),
SET_WINDOW_POS_FLAGS.SWP_NOMOVE
);
});
@@ -421,7 +421,8 @@
cbSize = (uint)Marshal.SizeOf()
};
PInvoke.GetWindowInfo(_handle, ref windowInfo);
- return new RectInt32(windowInfo.rcClient.left, windowInfo.rcClient.top, windowInfo.rcClient.right - windowInfo.rcClient.left, windowInfo.rcClient.bottom - windowInfo.rcClient.top);
+ var rcClient = windowInfo.rcClient;
+ return new RectInt32(rcClient.left, rcClient.top, rcClient.Width, rcClient.Height);
}
}
}
\ No newline at end of file
diff --git a/Qwilight/View/VoteWindow.xaml b/Qwilight/View/VoteWindow.xaml
index 72e31ad..e1406e3 100644
--- a/Qwilight/View/VoteWindow.xaml
+++ b/Qwilight/View/VoteWindow.xaml
@@ -22,8 +22,8 @@
-
-
+
+
diff --git a/Qwilight/ViewModel/MainViewModel.cs b/Qwilight/ViewModel/MainViewModel.cs
index c305315..fae0a56 100644
--- a/Qwilight/ViewModel/MainViewModel.cs
+++ b/Qwilight/ViewModel/MainViewModel.cs
@@ -262,6 +262,7 @@
{
try
{
+ GC.Collect();
GC.TryStartNoGCRegion(lazyGC);
}
catch (InvalidOperationException)
@@ -884,8 +885,6 @@
public void OnWindowDPIModified(double windowDPI)
{
WindowDPI = windowDPI;
- OnModified();
- OnMove();
}
public void OnModified()
@@ -898,10 +897,7 @@
Configure.Instance.WindowLengthV2 = (int)(windowAreaLength / WindowDPI);
Configure.Instance.WindowHeightV2 = (int)(windowAreaHeight / WindowDPI);
}
- if (!IsWPFViewVisible)
- {
- DrawingSystem.Instance.OnModified();
- }
+ DrawingSystem.Instance.OnModified();
}
public void OnMove()
@@ -3181,10 +3177,6 @@
public void SetWPFViewVisibility()
{
IsWPFViewVisible = IsNoteFileMode || ViewModels.Instance.WindowViewModels.Any(windowViewModel => windowViewModel.IsOpened);
- if (!IsWPFViewVisible)
- {
- DrawingSystem.Instance.OnModified();
- }
}
public async Task GetQwilight(bool isSilent)
diff --git a/Test/Test.csproj b/Test/Test.csproj
index 1718bd3..fd20e3b 100644
--- a/Test/Test.csproj
+++ b/Test/Test.csproj
@@ -8,6 +8,7 @@
false
true
true
+ 10.0.22621.35-preview
true