diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-01-04 16:52:26 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-01-04 16:52:26 +0100 |
| commit | 06fdfaf8221b6c4bd5ff9d85a598e1387748eb6d (patch) | |
| tree | 0ff3490e5ca3960cff568ddc6a952137a76dcdb5 /src | |
| parent | 8856b9670119d5353d7a2bd3d4299e9478b9ce1f (diff) | |
Restore possibility to compile with SDK 10.7 or earlier.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index d5fc1c9a9..34fb7ba44 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3428,11 +3428,13 @@ void Fl_Cocoa_Window_Driver::make_current() { if (make_current_counts > 1 && !views_use_CA) return; 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]; if (!view->layer_data) [view prepare_bitmap_for_layer]; // necessary for progressive drawing [view setNeedsDisplay:YES]; } +#endif q_release_context(); Fl_X *i = Fl_X::i(pWindow); //NSLog(@"region-count=%d damage=%u",i->region?i->region->count:0, pWindow->damage()); |
