diff --git a/Sources/ChangeMenuBarColor/Extensions/ImageFunctions.swift b/Sources/ChangeMenuBarColor/Extensions/ImageFunctions.swift index 21e8eaf..cfc7e95 100644 --- a/Sources/ChangeMenuBarColor/Extensions/ImageFunctions.swift +++ b/Sources/ChangeMenuBarColor/Extensions/ImageFunctions.swift @@ -64,5 +64,5 @@ func combineImages(baseImage: NSImage, addedImage: NSImage) -> NSImage? { } func createContext(width: CGFloat, height: CGFloat) -> CGContext? { - return CGContext(data: nil, width: Int(width), height: Int(height), bitsPerComponent: 8, bytesPerRow: 4 * Int(width), space: CGColorSpaceCreateDeviceRGB(), bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue) + return CGContext(data: nil, width: Int(width), height: Int(height), bitsPerComponent: 8, bytesPerRow: 0, space: CGColorSpaceCreateDeviceRGB(), bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue) }