summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-05-12 14:08:02 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-05-12 14:08:02 +0000
commitbce23d108a5ab76022d3c3884b69567039fb204a (patch)
tree8501ec5cf3d70c50810ad7b75348ec0966157ec0 /src
parent7c225536ef4870298be35e52c935e1dfec1a9aee (diff)
OpenGL windows that were completely off-screen caused problems
with some graphics cards on WIN32 (STR #831) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 2dc3f2b36..56acef620 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -816,7 +816,11 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
case WM_MOVE:
resize_bug_fix = window;
- window->position(LOWORD(lParam), HIWORD(lParam));
+ int nx = LOWORD(lParam);
+ int ny = HIWORD(lParam);
+ if (nx & 0x8000) nx -= 65536;
+ if (ny & 0x8000) ny -= 65536;
+ window->position(nx, ny);
break;
case WM_SETCURSOR: