mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 06:21:26 +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();
|
||||
H = window->h();
|
||||
} else if (Fl_Cocoa_Window_Driver::driver(window)->through_resize()) {
|
||||
X = window->x();
|
||||
Y = window->y();
|
||||
if (window->parent()) {
|
||||
X = window->x();
|
||||
Y = window->y();
|
||||
} else {
|
||||
// Recalculate the FLTK position from the current Cocoa position
|
||||
CocoatoFLTK(window, X, Y);
|
||||
}
|
||||
W = window->w();
|
||||
H = window->h();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user