Skip to content

Commit

Permalink
Bordersize was calculated wrong for borderless windows
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Aug 21, 2005
1 parent ac65443 commit 4ba366f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fl_win32.cxx
Expand Up @@ -990,8 +990,8 @@ int Fl_X::fake_X_wm(const Fl_Window* w,int &X,int &Y, int &bt,int &bx, int &by)
W = r.right - r.left;
H = r.bottom - r.top;
bx = w->x() - r.left;
bt = GetSystemMetrics(SM_CYCAPTION);
by = w->y() - r.top - bt;
by = r.bottom - w->y() - w->h(); // height of the bootm frame
bt = w->y() - r.top - by; // height of top caption bar
xoff = bx;
yoff = by + bt;
dx = W - w->w();
Expand Down

0 comments on commit 4ba366f

Please sign in to comment.