mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
macOS: Fix scaling subwindows - cont'd #927
This commit is contained in:
+7
-2
@@ -1370,8 +1370,13 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
|
|||||||
W = window->w();
|
W = window->w();
|
||||||
H = window->h();
|
H = window->h();
|
||||||
} else if (Fl_Cocoa_Window_Driver::driver(window)->through_resize()) {
|
} else if (Fl_Cocoa_Window_Driver::driver(window)->through_resize()) {
|
||||||
X = window->x();
|
if (window->parent()) {
|
||||||
Y = window->y();
|
X = window->x();
|
||||||
|
Y = window->y();
|
||||||
|
} else {
|
||||||
|
// Recalculate the FLTK position from the current Cocoa position
|
||||||
|
CocoatoFLTK(window, X, Y);
|
||||||
|
}
|
||||||
W = window->w();
|
W = window->w();
|
||||||
H = window->h();
|
H = window->h();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user