Skip to content

Commit 3d3c03e

Browse files
committed
Pass the HwndSource parameters directly
The RegisterHwndForInput only be called by `HwndStylusInputProvider..ctor`. And the `HwndStylusInputProvider..ctor` will pass the `HwndSource source` to RegisterHwndForInput method. So that it unnecessary to use the PresentationSource in RegisterHwndForInput.
1 parent b4d57bf commit 3d3c03e

File tree

1 file changed

+1
-3
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp

1 file changed

+1
-3
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,10 +3137,8 @@ internal bool Enabled
31373137
}
31383138

31393139
/////////////////////////////////////////////////////////////////////
3140-
internal void RegisterHwndForInput(InputManager inputManager, PresentationSource inputSource)
3140+
internal void RegisterHwndForInput(InputManager inputManager, HwndSource hwndSource)
31413141
{
3142-
HwndSource hwndSource = (HwndSource)inputSource;
3143-
31443142
GetAndCacheTransformToDeviceMatrix(hwndSource);
31453143

31463144
// Keep track so we don't bother looking for changes if someone happened to query this before

0 commit comments

Comments
 (0)