mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +08:00
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:
+2
-2
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user