diff options
| author | Manolo Gouy <Manolo> | 2017-07-04 17:15:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-04 17:15:23 +0000 |
| commit | 976959c98e0fbe652b1fe50a83b4e2c039721657 (patch) | |
| tree | ede9b2d7a9110fd476fc40b5f99e2eb86445ea13 /src | |
| parent | 99615372a6ae089b7eac3821b321d80ce8f81332 (diff) | |
Slight improvement of Fl_WinAPI_Window_Driver::border_width_title_bar_height()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx index a5621de6a..474f019dc 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx @@ -102,10 +102,12 @@ RECT // frame of the decorated window in screen coordinates if (need_r) { GetWindowRect(fl_xid(win), &r); } - bx = (r.right - r.left - int(win->w() * scaling))/2; + RECT rc; + GetClientRect(fl_xid(win), &rc); + bx = (r.right - r.left - rc.right)/2; if (bx < 1) bx = 1; by = bx; - bt = r.bottom - r.top - int(win->h() * scaling) - 2 * by; + bt = r.bottom - r.top - rc.bottom - 2 * by; } return r; } |
