diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-15 15:01:12 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-15 15:01:12 +0200 |
| commit | 699cca8ff4367c15ea0cda1b5750c68eac174816 (patch) | |
| tree | 9bba71685e9b649c80c5e1acff32597a05008a22 /src/Fl_cocoa.mm | |
| parent | 700fb1aadd86f6fc81f4acccfe44dd539f487c57 (diff) | |
Make Fl::set_color(r,g,b,a) effective under Wayland and macOS.
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |
