zoom hack was not quite right...
svn: r6683
This commit is contained in:
parent
19af52af8b
commit
5abd7ecb09
|
@ -646,13 +646,15 @@ void wxFrame::Maximize(Bool maximize)
|
||||||
size.h = (rect.right - rect.left);
|
size.h = (rect.right - rect.left);
|
||||||
size.v = (rect.bottom - rect.top);
|
size.v = (rect.bottom - rect.top);
|
||||||
|
|
||||||
if (size.v + pam_dv == cWindowHeight) {
|
if ((size.v + pam_dv == cWindowHeight)
|
||||||
|
&& (size.h + pam_dh == cWindowWidth)) {
|
||||||
zoom_window_hack = 1;
|
zoom_window_hack = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Rect r;
|
Rect r;
|
||||||
GetWindowIdealUserState(theMacWindow, &r);
|
GetWindowIdealUserState(theMacWindow, &r);
|
||||||
if ((r.bottom - r.top + pam_dv) == cWindowHeight) {
|
if (((r.bottom - r.top + pam_dv) == cWindowHeight)
|
||||||
|
&& ((r.right - r.left + pam_dh) == cWindowWidth)) {
|
||||||
zoom_window_hack = 1;
|
zoom_window_hack = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user