summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_cocoa.mm11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index df7d617bf..9a66a3479 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2202,19 +2202,14 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
}
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14
- (void)create_aux_bitmap:(CGContextRef)gc retina:(BOOL)r {
- CGColorSpaceRef cspace = CGBitmapContextGetColorSpace(gc);
- CFRetain(cspace);
aux_bitmap = CGBitmapContextCreate(NULL, CGBitmapContextGetWidth(gc), CGBitmapContextGetHeight(gc),
CGBitmapContextGetBitsPerComponent(gc), CGBitmapContextGetBytesPerRow(gc),
- cspace, CGBitmapContextGetBitmapInfo(gc));
+ CGBitmapContextGetColorSpace(gc), CGBitmapContextGetBitmapInfo(gc));
if (r) CGContextScaleCTM(aux_bitmap, 2, 2);
}
- (void)reset_aux_bitmap {
- if (aux_bitmap) {
- CFRelease(CGBitmapContextGetColorSpace(aux_bitmap));
- CFRelease(aux_bitmap);
- aux_bitmap = NULL;
- }
+ CGContextRelease(aux_bitmap);
+ aux_bitmap = NULL;
}
#endif
- (BOOL)process_keydown:(NSEvent*)theEvent