From ae6645586e54faa2f7f7ef6846f9012079a3c6e1 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Tue, 12 Dec 2023 21:56:35 -0800 Subject: [PATCH] unpack rgb correctly --- macos/Sources/Ghostty/SurfaceView.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macos/Sources/Ghostty/SurfaceView.swift b/macos/Sources/Ghostty/SurfaceView.swift index f013d908a..29f0dcf73 100644 --- a/macos/Sources/Ghostty/SurfaceView.swift +++ b/macos/Sources/Ghostty/SurfaceView.swift @@ -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,