summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-05-12 16:51:18 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-05-12 16:51:18 +0000
commit07abce4903bbbc54417fbeb4bba0072a07f8fdea (patch)
tree7b8dde8f70d200f9ed23fcd43e57e090d6bf2b80 /src
parentd63a4bfa7440824ce6a78af528bbb4b0d05964b3 (diff)
Check for FL_MOVE messages with the high bit set to 1 - treat as signed coordinate data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 56acef620..0e5aeaf85 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -814,13 +814,13 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
}
break;
- case WM_MOVE:
+ case WM_MOVE: {
resize_bug_fix = window;
int nx = LOWORD(lParam);
int ny = HIWORD(lParam);
if (nx & 0x8000) nx -= 65536;
if (ny & 0x8000) ny -= 65536;
- window->position(nx, ny);
+ window->position(nx, ny); }
break;
case WM_SETCURSOR: