Skip to content

Commit b1ea797

Browse files
committed
Allowed for negative screen coordinates when using mousewheel
1 parent efe3a11 commit b1ea797

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

mushview.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5015,6 +5015,9 @@ BOOL CMUSHView::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
50155015
CMUSHclientDoc* pDoc = GetDocument();
50165016
ASSERT_VALID(pDoc);
50175017

5018+
// allow for negative values, eg. on second monitors
5019+
pt.x = (int) (short) pt.x;
5020+
pt.y = (int) (short) pt.y;
50185021

50195022
CRect rect;
50205023

sendvw.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2695,6 +2695,10 @@ BOOL CSendView::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
26952695
{
26962696
CRect rect;
26972697

2698+
// allow for negative values, eg. on second monitors
2699+
pt.x = (int) (short) pt.x;
2700+
pt.y = (int) (short) pt.y;
2701+
26982702
m_topview->GetClientRect (&rect);
26992703
m_topview->ClientToScreen(&rect);
27002704

0 commit comments

Comments
 (0)