diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-08-21 22:28:57 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-08-21 22:28:57 +0000 |
| commit | 4ba366f7d78676e7bd13d9f9d8943c99df39a6f2 (patch) | |
| tree | 07f2f12f591482c5744149a1914115ed2d28bde1 /src | |
| parent | ac6544388294293a8944c8cf88a67183d4330728 (diff) | |
Bordersize was calculated wrong for borderless windows
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 651cbd20a..1dd66dc39 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -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(); |
