mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/macos: more stuff
This commit is contained in:
@ -19,6 +19,13 @@ pub fn Context(comptime T: type) type {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setAllowsAntialiasing(self: *T, v: bool) void {
|
||||
c.CGContextSetAllowsAntialiasing(
|
||||
@ptrCast(c.CGContextRef, self),
|
||||
v,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setShouldAntialias(self: *T, v: bool) void {
|
||||
c.CGContextSetShouldAntialias(
|
||||
@ptrCast(c.CGContextRef, self),
|
||||
|
@ -139,6 +139,7 @@ pub const Face = struct {
|
||||
);
|
||||
defer ctx.release();
|
||||
|
||||
ctx.setAllowsAntialiasing(false);
|
||||
ctx.setShouldAntialias(false);
|
||||
ctx.setShouldSmoothFonts(false);
|
||||
ctx.setGrayFillColor(1, 1);
|
||||
|
Reference in New Issue
Block a user