summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-09-07 08:21:41 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-09-07 08:36:13 +0200
commit148e1df908747bae8b9f616de2b438fa659bceab (patch)
tree638188ff5079312704bd0915437c39f2225dbaac /src/Fl_cocoa.mm
parent0e4137f66b81e5a6e2ef91ac5a3533513ef2b47c (diff)
Further minor change to support macOS 11.0 "Big Sur".
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm2
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),