From 699cca8ff4367c15ea0cda1b5750c68eac174816 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 15 Sep 2022 15:01:12 +0200 Subject: Make Fl::set_color(r,g,b,a) effective under Wayland and macOS. --- src/Fl_cocoa.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Fl_cocoa.mm') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index ddcb6d4c1..89636fd3a 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2239,6 +2239,8 @@ static FLTextInputContext* fltextinputcontext_instance = nil; CGBitmapContextGetBitsPerComponent(gc), CGBitmapContextGetBytesPerRow(gc), CGBitmapContextGetColorSpace(gc), CGBitmapContextGetBitmapInfo(gc)); } + CGContextClearRect(aux_bitmap, CGRectMake(0, 0, + CGBitmapContextGetWidth(aux_bitmap), CGBitmapContextGetHeight(aux_bitmap))); if (r) CGContextScaleCTM(aux_bitmap, 2, 2); } - (void)reset_aux_bitmap { -- cgit v1.2.3