Skip to content

Commit 67c1205

Browse files
authored
Fix a color issue on macOS
On a Mac with an HDR display it would render colours incorrectly in the PDE
1 parent 8a45a1f commit 67c1205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ compose.desktop {
7272
entitlementsFile.set(file("macos/entitlements.plist"))
7373
runtimeEntitlementsFile.set(file("macos/entitlements.plist"))
7474
appStore = true
75+
jvmArgs("-Dsun.java2d.metal=true")
7576
}
7677
windows{
7778
iconFile = rootProject.file("build/windows/processing.ico")
@@ -542,4 +543,4 @@ afterEvaluate {
542543
dependsOn("signResources")
543544
finalizedBy("setExecutablePermissions")
544545
}
545-
}
546+
}

0 commit comments

Comments
 (0)