SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5fb6d55c67ce3f6f5752c3877d38e6caef88e01f parent 226825bda4bd344b6ccc7ee4794c8d707d25c106 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 6 Jan 2024 21:49:48 +0200 Fix the update dialog font, which was broken on both older and newer versions of macOS Diffstat:
| M | Cocoa/GBApp.m | 10 | +++++++++- |
| M | LICENSE | 2 | +- |
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/Cocoa/GBApp.m b/Cocoa/GBApp.m @@ -285,7 +285,15 @@ static uint32_t color_to_int(NSColor *color) dispatch_async(dispatch_get_main_queue(), ^{ NSArray *objects; [[NSBundle mainBundle] loadNibNamed:@"UpdateWindow" owner:self topLevelObjects:&objects]; - self.updateChanges.preferences.standardFontFamily = [NSFont systemFontOfSize:0].familyName; + if (@available(macOS 10.11, *)) { + self.updateChanges.preferences.standardFontFamily = @"-apple-system"; + } + else if (@available(macOS 10.10, *)) { + self.updateChanges.preferences.standardFontFamily = @"Helvetica Neue"; + } + else { + self.updateChanges.preferences.standardFontFamily = @"Lucida Grande"; + } self.updateChanges.preferences.fixedFontFamily = @"Menlo"; self.updateChanges.drawsBackground = false; [self.updateChanges.mainFrame loadHTMLString:html baseURL:nil]; diff --git a/LICENSE b/LICENSE @@ -1,6 +1,6 @@ Expat License -Copyright (c) 2015-2023 Lior Halphon +Copyright (c) 2015-2024 Lior Halphon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.