From 1bbe76aa3760529925da73f091528900ed679d88 Mon Sep 17 00:00:00 2001 From: Paul Werelds Date: Mon, 4 Oct 2010 16:56:42 +0000 Subject: [PATCH] Fixed the context menu positioning as well, following the previous fix to multimonitor setups. --- GUI/GadgetWindow.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GUI/GadgetWindow.cs b/GUI/GadgetWindow.cs index 64c667e..4b71e66 100644 --- a/GUI/GadgetWindow.cs +++ b/GUI/GadgetWindow.cs @@ -140,8 +140,9 @@ namespace OpenHardwareMonitor.GUI { case WM_NCRBUTTONUP: { if (contextMenu != null) ShowContextMenu(new Point( - (int)((uint)message.LParam & 0xFFFF), - (int)(((uint)message.LParam >> 16) & 0xFFFF))); + Macros.GET_X_LPARAM(message.LParam), + Macros.GET_Y_LPARAM(message.LParam) + )); message.Result = IntPtr.Zero; } break; case WM_WINDOWPOSCHANGING: {