summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-27 11:34:34 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-05-27 11:39:27 +0200
commitf3f69b892d0755d3674502e1de8cd7c4abb43755 (patch)
treebf393458e8cbd93aaccf80399575234e040309b1 /src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
parentc1333a2dec3616dbd6a53089885b48aee1d11a8d (diff)
Remove useless Fl_Window_Driver accessors after new member Fl_Window::get_size_range()
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
index e2c0de1d7..f6ad0bcad 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
@@ -631,7 +631,9 @@ void Fl_WinAPI_Window_Driver::iconize() {
void Fl_WinAPI_Window_Driver::decoration_sizes(int *top, int *left, int *right, int *bottom) {
- if (size_range_set() && (maxw() != minw() || maxh() != minh())) {
+ int minw, minh, maxw, maxh, set;
+ set = pWindow->get_size_range(&minw, &minh, &maxw, &maxh, NULL, NULL, NULL);
+ if (set && (maxw != minw || maxh != minh)) {
*left = *right = GetSystemMetrics(SM_CXSIZEFRAME);
*top = *bottom = GetSystemMetrics(SM_CYSIZEFRAME);
} else {