Skip to content

Commit 1d703de

Browse files
fix(painting): typo
1 parent c2bd763 commit 1d703de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phantom/painting/fb/fd.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn create(alloc: Allocator, info: Base.Info, fd: std.os.fd_t) !*Base {
1616
self.* = .{
1717
.info = info,
1818
.fd = fd,
19-
.buffer = try std.os.mmap(null, info.res.value[0] * info.res.value[1] * @divExact(info.colorFormat.width(), 8), std.os.PROT.READ | std.os.PROT.WRITE, std.os.MAP_TYPE.SHARED, fd, 0),
19+
.buffer = try std.os.mmap(null, info.res.value[0] * info.res.value[1] * @divExact(info.colorFormat.width(), 8), std.os.PROT.READ | std.os.PROT.WRITE, std.os.MAP.TYPE.SHARED, fd, 0),
2020
.base = .{
2121
.allocator = alloc,
2222
.vtable = &.{
@@ -51,7 +51,7 @@ fn impl_dupe(ctx: *anyopaque) anyerror!*Base {
5151
d.* = .{
5252
.info = self.info,
5353
.fd = self.fd,
54-
.buffer = try std.os.mmap(null, self.info.res.value[0] * self.info.res.value[1] * @divExact(self.info.colorFormat.width(), 8), std.os.PROT.READ | std.os.PROT.WRITE, std.os.MAP_TYPE.SHARED, self.fd, 0),
54+
.buffer = try std.os.mmap(null, self.info.res.value[0] * self.info.res.value[1] * @divExact(self.info.colorFormat.width(), 8), std.os.PROT.READ | std.os.PROT.WRITE, std.os.MAP.TYPE.SHARED, self.fd, 0),
5555
.base = .{
5656
.ptr = d,
5757
.allocator = self.base.allocator,

0 commit comments

Comments
 (0)