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
This commit is contained in:
Michael R Sweet
2005-05-12 16:51:18 +00:00
parent d63a4bfa74
commit 07abce4903
+2 -2
View File
@@ -814,13 +814,13 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
} }
break; break;
case WM_MOVE: case WM_MOVE: {
resize_bug_fix = window; resize_bug_fix = window;
int nx = LOWORD(lParam); int nx = LOWORD(lParam);
int ny = HIWORD(lParam); int ny = HIWORD(lParam);
if (nx & 0x8000) nx -= 65536; if (nx & 0x8000) nx -= 65536;
if (ny & 0x8000) ny -= 65536; if (ny & 0x8000) ny -= 65536;
window->position(nx, ny); window->position(nx, ny); }
break; break;
case WM_SETCURSOR: case WM_SETCURSOR: