mirror of
https://github.com/fltk/fltk.git
synced 2026-06-03 22:17:12 +08:00
Further minor change to support macOS 11.0 "Big Sur".
This commit is contained in:
+1
-1
@@ -2188,7 +2188,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
|
|||||||
static CGColorSpaceRef cspace = CGColorSpaceCreateDeviceRGB();
|
static CGColorSpaceRef cspace = CGColorSpaceCreateDeviceRGB();
|
||||||
int W = [self frame].size.width, H = [self frame].size.height;
|
int W = [self frame].size.width, H = [self frame].size.height;
|
||||||
if (r) { W *= 2; H *= 2; }
|
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 {
|
} else {
|
||||||
aux_bitmap = CGBitmapContextCreate(NULL, CGBitmapContextGetWidth(gc), CGBitmapContextGetHeight(gc),
|
aux_bitmap = CGBitmapContextCreate(NULL, CGBitmapContextGetWidth(gc), CGBitmapContextGetHeight(gc),
|
||||||
CGBitmapContextGetBitsPerComponent(gc), CGBitmapContextGetBytesPerRow(gc),
|
CGBitmapContextGetBitsPerComponent(gc), CGBitmapContextGetBytesPerRow(gc),
|
||||||
|
|||||||
Reference in New Issue
Block a user