diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-09-07 08:21:41 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-09-07 08:36:13 +0200 |
| commit | 148e1df908747bae8b9f616de2b438fa659bceab (patch) | |
| tree | 638188ff5079312704bd0915437c39f2225dbaac /src | |
| parent | 0e4137f66b81e5a6e2ef91ac5a3533513ef2b47c (diff) | |
Further minor change to support macOS 11.0 "Big Sur".
Diffstat (limited to 'src')
| -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 899f35d9b..8c7b4ae1d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2188,7 +2188,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil; static CGColorSpaceRef cspace = CGColorSpaceCreateDeviceRGB(); int W = [self frame].size.width, H = [self frame].size.height; if (r) { W *= 2; H *= 2; } - aux_bitmap = CGBitmapContextCreate(NULL, W, H, 8, 0, cspace, kCGImageAlphaPremultipliedFirst); + aux_bitmap = CGBitmapContextCreate(NULL, W, H, 8, 0, cspace, kCGImageAlphaPremultipliedFirst|kCGBitmapByteOrder32Host); } else { aux_bitmap = CGBitmapContextCreate(NULL, CGBitmapContextGetWidth(gc), CGBitmapContextGetHeight(gc), CGBitmapContextGetBitsPerComponent(gc), CGBitmapContextGetBytesPerRow(gc), |
