From dc4c23c0da1f86f04bc6e8ce62c9732de4675a70 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 10 Jul 2018 20:35:07 +0300 Subject: [PATCH] Worked around a macOS bug where fullscreen-mode SameBoy would render garbage on High Sierra. Fixed titlebar color when using the ugly Yosemite theme. --- Cocoa/Document.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cocoa/Document.m b/Cocoa/Document.m index 7cb0eea..c9205ce 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -334,7 +334,7 @@ static void printImage(GB_gameboy_t *gb, uint32_t *image, uint8_t height, NSMutableParagraphStyle *paragraph_style = [[NSMutableParagraphStyle alloc] init]; [paragraph_style setLineSpacing:2]; - self.mainWindow.backgroundColor = [NSColor blackColor]; + self.mainWindow.contentView.layer.backgroundColor = [[NSColor blackColor] CGColor]; self.debuggerSideViewInput.font = [NSFont userFixedPitchFontOfSize:12]; self.debuggerSideViewInput.textColor = [NSColor whiteColor];