mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
sys_patch.py: Drop ColorSync downgrade
This commit is contained in:
+3
-1
@@ -4,10 +4,12 @@
|
|||||||
- Update non-Metal Binaries:
|
- Update non-Metal Binaries:
|
||||||
- Improve experimental Menubar implementation stability
|
- Improve experimental Menubar implementation stability
|
||||||
- Implement reduce transparency Menubar
|
- Implement reduce transparency Menubar
|
||||||
|
- Resolve Color Profile support and Black Box rendering issues on HD 3000 Macs
|
||||||
|
- Drops ColorSync downgrade configuration option
|
||||||
- Resolve app not updating in `/Applications` after an update
|
- Resolve app not updating in `/Applications` after an update
|
||||||
- Work-around users manually copying app to `/Applications` instead of allowing Root Volume Patcher to create a proper alias
|
- Work-around users manually copying app to `/Applications` instead of allowing Root Volume Patcher to create a proper alias
|
||||||
- Increment Binaries:
|
- Increment Binaries:
|
||||||
- PatcherSupportPkg 1.1.3 - release
|
- PatcherSupportPkg 1.1.4 - release
|
||||||
|
|
||||||
## 0.6.7
|
## 0.6.7
|
||||||
- Resolve partition buttons overlapping in Install OpenCore UI
|
- Resolve partition buttons overlapping in Install OpenCore UI
|
||||||
|
|||||||
@@ -228,10 +228,9 @@ class SystemPatchDictionary():
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
"Non-Metal ColorSync Workaround": {
|
"Revert Non-Metal ColorSync Workaround": {
|
||||||
# HD3000 Macs have issues with certain ColorProfiles
|
# Old patch for ColorSync in Ventura on HD3000s
|
||||||
# This downgrade allows for proper UI rendering,
|
# Proper solution has been integrated into QuartzCore
|
||||||
# however limited to Ventura due to regression with Big Sur and Monterey
|
|
||||||
"Display Name": "",
|
"Display Name": "",
|
||||||
"OS Support": {
|
"OS Support": {
|
||||||
"Minimum OS Support": {
|
"Minimum OS Support": {
|
||||||
@@ -239,14 +238,15 @@ class SystemPatchDictionary():
|
|||||||
"OS Minor": 0
|
"OS Minor": 0
|
||||||
},
|
},
|
||||||
"Maximum OS Support": {
|
"Maximum OS Support": {
|
||||||
"OS Major": self.non_metal_os_support[-1],
|
"OS Major": os_data.os_data.ventura,
|
||||||
"OS Minor": 99
|
"OS Minor": 99
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"Install": {
|
"Remove": {
|
||||||
"/System/Library/Frameworks": {
|
"/System/Library/Frameworks/ColorSync.framework/Versions/A": [
|
||||||
"ColorSync.framework": f"10.15.7-{self.os_major}",
|
"ColorSync",
|
||||||
},
|
"ColorSyncOld.dylib",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Constants:
|
|||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
# Patcher Versioning
|
# Patcher Versioning
|
||||||
self.patcher_version: str = "0.6.8" # OpenCore-Legacy-Patcher
|
self.patcher_version: str = "0.6.8" # OpenCore-Legacy-Patcher
|
||||||
self.patcher_support_pkg_version: str = "1.1.3" # PatcherSupportPkg
|
self.patcher_support_pkg_version: str = "1.1.4" # PatcherSupportPkg
|
||||||
self.copyright_date: str = "Copyright © 2020-2023 Dortania"
|
self.copyright_date: str = "Copyright © 2020-2023 Dortania"
|
||||||
self.patcher_name: str = "OpenCore Legacy Patcher"
|
self.patcher_name: str = "OpenCore Legacy Patcher"
|
||||||
|
|
||||||
@@ -215,7 +215,6 @@ class Constants:
|
|||||||
self.disable_connectdrivers: bool = False # Disable ConnectDrivers (hibernation)
|
self.disable_connectdrivers: bool = False # Disable ConnectDrivers (hibernation)
|
||||||
self.set_content_caching: bool = False # Set Content Caching
|
self.set_content_caching: bool = False # Set Content Caching
|
||||||
self.set_vmm_cpuid: bool = False # Set VMM bit inside CPUID
|
self.set_vmm_cpuid: bool = False # Set VMM bit inside CPUID
|
||||||
self.disable_cat_colorsync: bool = False # Disable the ColorSync patch to regain Display Profiles
|
|
||||||
self.set_alc_usage: bool = True # Set AppleALC usage
|
self.set_alc_usage: bool = True # Set AppleALC usage
|
||||||
self.allow_3rd_party_drives: bool = True # Allow ThridPartyDrives quirk
|
self.allow_3rd_party_drives: bool = True # Allow ThridPartyDrives quirk
|
||||||
self.allow_nvme_fixing: bool = True # Allow NVMe Kernel Space Patches
|
self.allow_nvme_fixing: bool = True # Allow NVMe Kernel Space Patches
|
||||||
|
|||||||
@@ -71,14 +71,6 @@ class GenerateDefaults:
|
|||||||
global_settings.GlobalEnviromentSettings().write_property("MacBookPro_TeraScale_2_Accel", False)
|
global_settings.GlobalEnviromentSettings().write_property("MacBookPro_TeraScale_2_Accel", False)
|
||||||
self.constants.allow_ts2_accel = False
|
self.constants.allow_ts2_accel = False
|
||||||
|
|
||||||
if self.model in ["MacBookAir4,1","MacBookAir4,2","MacBookPro8,1","MacBookPro8,2","MacBookPro8,3","Macmini5,1"]:
|
|
||||||
colorsync_status = global_settings.GlobalEnviromentSettings().read_property("Disable_ColorSync_Downgrade")
|
|
||||||
if colorsync_status is True:
|
|
||||||
self.constants.disable_cat_colorsync = True
|
|
||||||
else:
|
|
||||||
global_settings.GlobalEnviromentSettings().write_property("Disable_ColorSync_Downgrade", False)
|
|
||||||
self.constants.disable_cat_colorsync = False
|
|
||||||
|
|
||||||
if self.model in smbios_data.smbios_dictionary:
|
if self.model in smbios_data.smbios_dictionary:
|
||||||
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] >= cpu_data.CPUGen.skylake.value:
|
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] >= cpu_data.CPUGen.skylake.value:
|
||||||
# On 2016-2017 MacBook Pros, 15" devices used a stock Samsung SSD with IONVMeController
|
# On 2016-2017 MacBook Pros, 15" devices used a stock Samsung SSD with IONVMeController
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ class GenerateRootPatchSets:
|
|||||||
required_patches.update({"WebKit Monterey Common": all_hardware_patchset["Graphics"]["WebKit Monterey Common"]})
|
required_patches.update({"WebKit Monterey Common": all_hardware_patchset["Graphics"]["WebKit Monterey Common"]})
|
||||||
required_patches.update({"Intel Sandy Bridge": all_hardware_patchset["Graphics"]["Intel Sandy Bridge"]})
|
required_patches.update({"Intel Sandy Bridge": all_hardware_patchset["Graphics"]["Intel Sandy Bridge"]})
|
||||||
# Patchset breaks Display Profiles, don't install if primary GPU is AMD. Give users option to disable patch in settings to restore Display Profiles
|
# Patchset breaks Display Profiles, don't install if primary GPU is AMD. Give users option to disable patch in settings to restore Display Profiles
|
||||||
if self.constants.computer.real_model not in ["Macmini5,2", "iMac12,1", "iMac12,2"] or self.constants.disable_cat_colorsync is False:
|
if self.constants.computer.real_model not in ["Macmini5,2", "iMac12,1", "iMac12,2"]:
|
||||||
required_patches.update({"Non-Metal ColorSync Workaround": all_hardware_patchset["Graphics"]["Non-Metal ColorSync Workaround"]})
|
required_patches.update({"Revert Non-Metal ColorSync Workaround": all_hardware_patchset["Graphics"]["Revert Non-Metal ColorSync Workaround"]})
|
||||||
|
|
||||||
if self.hardware_details["Graphics: Intel Ivy Bridge"] is True:
|
if self.hardware_details["Graphics: Intel Ivy Bridge"] is True:
|
||||||
required_patches.update({"Metal 3802 Common": all_hardware_patchset["Graphics"]["Metal 3802 Common"]})
|
required_patches.update({"Metal 3802 Common": all_hardware_patchset["Graphics"]["Metal 3802 Common"]})
|
||||||
|
|||||||
@@ -675,18 +675,6 @@ class SettingsFrame(wx.Frame):
|
|||||||
"wrap_around 1": {
|
"wrap_around 1": {
|
||||||
"type": "wrap_around",
|
"type": "wrap_around",
|
||||||
},
|
},
|
||||||
"Disable ColorSync Downgrade": {
|
|
||||||
"type": "checkbox",
|
|
||||||
"value": global_settings.GlobalEnviromentSettings().read_property("Disable_ColorSync_Downgrade") or self.constants.disable_cat_colorsync,
|
|
||||||
"variable": "Disable_ColorSync_Downgrade",
|
|
||||||
"constants_variable": "disable_cat_colorsync",
|
|
||||||
"description": [
|
|
||||||
"Disable ColorSync downgrade",
|
|
||||||
"on HD3000 GPUs in Ventura and newer.",
|
|
||||||
"Note: Disabling can cause UI corruption.",
|
|
||||||
],
|
|
||||||
"condition": not bool(self.constants.computer.real_model not in ["MacBookAir4,1","MacBookAir4,2","MacBookPro8,1","MacBookPro8,2","MacBookPro8,3","Macmini5,1"])
|
|
||||||
},
|
|
||||||
"Non-Metal Configuration": {
|
"Non-Metal Configuration": {
|
||||||
"type": "title",
|
"type": "title",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user