From bce23d108a5ab76022d3c3884b69567039fb204a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 12 May 2005 14:08:02 +0000 Subject: 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 --- src/Fl_win32.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3