mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 08:32:07 +08:00
Mac OS: Fl_Window::resize() shd not modify the maximum window size if it is 0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+2
-2
@@ -2180,9 +2180,9 @@ void Fl_Window::resize(int X,int Y,int W,int H) {
|
||||
if (is_a_resize) {
|
||||
if (resizable()) {
|
||||
if (W<minw) minw = W; // user request for resize takes priority
|
||||
if (W>maxw) maxw = W; // over a previously set size_range
|
||||
if (maxw && W>maxw) maxw = W; // over a previously set size_range
|
||||
if (H<minh) minh = H;
|
||||
if (H>maxh) maxh = H;
|
||||
if (maxh && H>maxh) maxh = H;
|
||||
size_range(minw, minh, maxw, maxh);
|
||||
} else {
|
||||
size_range(W, H, W, H);
|
||||
|
||||
Reference in New Issue
Block a user