diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-09 12:43:03 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-09 12:43:03 +0200 |
| commit | 86849aac8ff3810ec104b8041cef026a5ba60c84 (patch) | |
| tree | aee9f16959010f0212b544bacd28ae7fe003c216 | |
| parent | abc8f4158f2171884e055a2ca4b234655220c26e (diff) | |
Improve Fl_Cocoa_Window_Driver::make_current()
| -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 c742a6078..b953a6264 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3372,7 +3372,7 @@ void Fl_Cocoa_Window_Driver::make_current() if (make_current_counts) make_current_counts++; #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8 if (views_use_CA && !through_Fl_X_flush) { // detect direct calls from the app - FLViewLayer *view = (FLViewLayer*)[fl_window contentView]; + FLViewLayer *view = (FLViewLayer*)[fl_xid(pWindow) contentView]; if (!view->layer_data) [view prepare_bitmap_for_layer]; // necessary for progressive drawing [view setNeedsDisplay:YES]; } |
