diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-22 10:56:19 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-22 10:56:19 +0200 |
| commit | da6d671d9b9d50d8e0c90febda5c3ca610f9e839 (patch) | |
| tree | 8ebd946fd72446d4a11c600c0dee25fa9d8f7811 | |
| parent | 9ad985ce07a0dc96da0d845dce70f1612296077c (diff) | |
Support for fl_scroll() under macOS when GUI is scaled - cont'd
Handles support of non-layered windows
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 3b4af18e4..a64f70c16 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4263,7 +4263,7 @@ static NSBitmapImageRep* rect_to_NSBitmapImageRep(Fl_Window *win, int x, int y, } else { NSView *winview = nil; if ( through_Fl_X_flush && Fl_Window::current() == win ) { - rect = NSMakeRect(s*x - 0.5, s*y - 0.5, s*w, s*h); + rect = NSMakeRect(x - 0.5, y - 0.5, w, h); } else { winview = [fl_xid(win) contentView]; |
