mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/macos: fix invalid constant
This commit is contained in:
@ -126,7 +126,7 @@ pub const FontTraitKey = enum {
|
|||||||
.symbolic => c.kCTFontSymbolicTrait,
|
.symbolic => c.kCTFontSymbolicTrait,
|
||||||
.weight => c.kCTFontWeightTrait,
|
.weight => c.kCTFontWeightTrait,
|
||||||
.width => c.kCTFontWidthTrait,
|
.width => c.kCTFontWidthTrait,
|
||||||
.slant => c.kCTFontFontSlantTrait,
|
.slant => c.kCTFontSlantTrait,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,6 +160,10 @@ pub const FontSymbolicTraits = packed struct {
|
|||||||
return @bitCast(FontSymbolicTraits, raw);
|
return @bitCast(FontSymbolicTraits, raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn cval(self: FontSymbolicTraits) c.CTFontSymbolicTraits {
|
||||||
|
return @bitCast(c.CTFontSymbolicTraits, self);
|
||||||
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
try std.testing.expectEqual(
|
try std.testing.expectEqual(
|
||||||
@bitSizeOf(c.CTFontSymbolicTraits),
|
@bitSizeOf(c.CTFontSymbolicTraits),
|
||||||
|
Reference in New Issue
Block a user