aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorZufu Liu <unknown>2024-03-11 09:11:35 +1100
committerZufu Liu <unknown>2024-03-11 09:11:35 +1100
commit456e40e7f8e1dde98a7127b0463f7ae8b6c6e88b (patch)
treecae4512425c8ca8f20520901434912eb92c5b76a /win32
parentef25afa9487a3231a3c89ff20a2245e6e728ba17 (diff)
downloadscintilla-mirror-456e40e7f8e1dde98a7127b0463f7ae8b6c6e88b.tar.gz
Feature [feature-requests:#1512]. Avoid warning C26467 float to unsigned.
Diffstat (limited to 'win32')
-rw-r--r--win32/ScintillaWin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index f27cd59ed..806d915b7 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2528,10 +2528,11 @@ void ScintillaWin::NotifyDoubleClick(Point pt, KeyMod modifiers) {
//Platform::DebugPrintf("ScintillaWin Double click 0\n");
ScintillaBase::NotifyDoubleClick(pt, modifiers);
// Send myself a WM_LBUTTONDBLCLK, so the container can handle it too.
+ const POINT point = POINTFromPoint(pt);
::SendMessage(MainHWND(),
WM_LBUTTONDBLCLK,
FlagSet(modifiers, KeyMod::Shift) ? MK_SHIFT : 0,
- MAKELPARAM(pt.x, pt.y));
+ MAKELPARAM(point.x, point.y));
}
namespace {