Skip to content

Commit

Permalink
OpenGL windows that were completely off-screen caused problems
Browse files Browse the repository at this point in the history
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
  • Loading branch information
michaelrsweet committed May 12, 2005
1 parent 7c22553 commit bce23d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7

- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745)
- OpenGL windows that were completely off-screen caused
problems with some graphics cards on WIN32 (STR #831)
- Multiple screen support didn't work on Windows NT and
95 (STR #821)
- Fl_Scrollbar didn't compute the correct knob size when
Expand Down
6 changes: 5 additions & 1 deletion src/Fl_win32.cxx
Expand Up @@ -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:
Expand Down

0 comments on commit bce23d1

Please sign in to comment.