From 7aea3dc1248cfa337fe1c3b3b96760e422ef119a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 7 Nov 2020 22:19:27 -0500 Subject: [PATCH 1/3] Corrects R4G4B4 and R2G2B2 output. --- OSBindings/Mac/Clock Signal/ScanTarget/ScanTarget.metal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OSBindings/Mac/Clock Signal/ScanTarget/ScanTarget.metal b/OSBindings/Mac/Clock Signal/ScanTarget/ScanTarget.metal index 88b0b5e99..40ed7da0b 100644 --- a/OSBindings/Mac/Clock Signal/ScanTarget/ScanTarget.metal +++ b/OSBindings/Mac/Clock Signal/ScanTarget/ScanTarget.metal @@ -332,12 +332,12 @@ half3 convertRed8Green8Blue8(SourceInterpolator vert, texture2d texture) { half3 convertRed4Green4Blue4(SourceInterpolator vert, texture2d texture) { const auto sample = texture.sample(standardSampler, vert.textureCoordinates).rg; - return clamp(half3(sample.r&15, (sample.g >> 4)&15, sample.g&15), half(0.0f), half(1.0f)); + return half3(sample.r&15, (sample.g >> 4)&15, sample.g&15) / 15.0f; } half3 convertRed2Green2Blue2(SourceInterpolator vert, texture2d texture) { const auto sample = texture.sample(standardSampler, vert.textureCoordinates).r; - return clamp(half3((sample >> 4)&3, (sample >> 2)&3, sample&3), half(0.0f), half(1.0f)); + return half3((sample >> 4)&3, (sample >> 2)&3, sample&3) / 3.0f; } half3 convertRed1Green1Blue1(SourceInterpolator vert, texture2d texture) { From e8b52d20e977386e9de5dc3ebe85765050c2df87 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 13 Nov 2020 12:14:35 -0500 Subject: [PATCH 2/3] Slightly tweaks machine picker for macOS Big Sur. --- .../Clock Signal.xcodeproj/project.pbxproj | 6 +- .../Base.lproj/MachinePicker.xib | 56 +++++++++---------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj index 020da0edc..966232880 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj +++ b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj @@ -4084,7 +4084,7 @@ }; 4BB73E9D1B587A5100552FC2 = { CreatedOnToolsVersion = 7.0; - DevelopmentTeam = CP2SKEB3XT; + DevelopmentTeam = DV3346VVUN; LastSwiftMigration = 1020; ProvisioningStyle = Automatic; SystemCapabilities = { @@ -5328,7 +5328,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = DV3346VVUN; ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -5374,7 +5374,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = DV3346VVUN; ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", diff --git a/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib b/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib index e3b662a15..cb4c375c2 100644 --- a/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib +++ b/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib @@ -1,8 +1,8 @@ - + - + @@ -17,14 +17,14 @@ - - + + - + - + If you use File -> Open... to select a disk, tape or cartridge directly, the emulator will select and configure a machine for you. @@ -59,16 +59,16 @@ Gw - + - + - + @@ -76,7 +76,7 @@ Gw - + @@ -84,10 +84,10 @@ Gw - + - + @@ -99,10 +99,10 @@ Gw - + - + @@ -130,14 +130,14 @@ Gw - + - + - + @@ -148,7 +148,7 @@ Gw - + @@ -235,7 +235,7 @@ Gw - + @@ -271,7 +271,7 @@ Gw - + @@ -320,7 +320,7 @@ Gw - + @@ -334,7 +334,7 @@ Gw - + @@ -379,7 +379,7 @@ Gw - + @@ -395,7 +395,7 @@ Gw - + @@ -456,7 +456,7 @@ Gw - + @@ -504,7 +504,7 @@ Gw - + From 86a24cc928fcb9b124c49c88926485d4df558e56 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 13 Nov 2020 12:23:48 -0500 Subject: [PATCH 3/3] Allows Xcode to bump its versioning on the ROM requester too. --- OSBindings/Mac/Clock Signal/ROMRequester/ROMRequester.xib | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OSBindings/Mac/Clock Signal/ROMRequester/ROMRequester.xib b/OSBindings/Mac/Clock Signal/ROMRequester/ROMRequester.xib index ab403b68f..82b71ef6e 100644 --- a/OSBindings/Mac/Clock Signal/ROMRequester/ROMRequester.xib +++ b/OSBindings/Mac/Clock Signal/ROMRequester/ROMRequester.xib @@ -1,8 +1,8 @@ - + - + @@ -37,7 +37,7 @@