Skip to content

Commit 28bf262

Browse files
author
Gaston Sgoifo
committed
fix: #113 scale context menu position acording to dpi setting
1 parent 9737877 commit 28bf262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NotifyIconWpf/Interop/WindowMessageSink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private void ProcessWindowMessage(uint msg, IntPtr wParam, IntPtr lParam)
240240
{
241241
X = (short)((nint)wParam & 0xFFFF),
242242
Y = (short)((nint)wParam >> 16 & 0xFFFF)
243-
});
243+
}.ScaleWithDpi());
244244
break;
245245

246246
case WindowsMessages.WM_MOUSEMOVE:

0 commit comments

Comments
 (0)