unpack rgb correctly

This commit is contained in:
Matt Robenolt
2023-12-12 21:56:35 -08:00
parent 1b039b35ac
commit ae6645586e

View File

@ -68,9 +68,11 @@ extension Ghostty {
var rgb: UInt32 = 16777215 // white default
let key = "unfocused-split-fill"
_ = ghostty_config_get(ghostty.config, &rgb, key, UInt(key.count))
let red = Double((rgb >> 16) & 0xff)
let red = Double(rgb & 0xff)
let green = Double((rgb >> 8) & 0xff)
let blue = Double(rgb & 0xff)
let blue = Double((rgb >> 16) & 0xff)
return Color(
red: red / 255,
green: green / 255,