diff options
Diffstat (limited to 'src/screen/drm/buffer')
| -rw-r--r-- | src/screen/drm/buffer/raw.zig | 2 | ||||
| -rw-r--r-- | src/screen/drm/buffer/root.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/screen/drm/buffer/raw.zig b/src/screen/drm/buffer/raw.zig index c5a04f3..12784de 100644 --- a/src/screen/drm/buffer/raw.zig +++ b/src/screen/drm/buffer/raw.zig @@ -40,7 +40,7 @@ pub const Raw = struct { .id = 0, .width = fb.width, .height = fb.height, - .pixel_format = drm.Pixel.Format.xrgb8888, + .pixel_format = .xrgb8888, .flags = 0, .handles = [_] u32 { fb.handle, 0, 0, 0 }, .pitches = [_] u32 { fb.stride, 0, 0, 0 }, diff --git a/src/screen/drm/buffer/root.zig b/src/screen/drm/buffer/root.zig index f14ed66..30734f2 100644 --- a/src/screen/drm/buffer/root.zig +++ b/src/screen/drm/buffer/root.zig @@ -35,7 +35,7 @@ pub const Buffer = struct { .width = self.current.width, .height = self.current.height, .buffer = @as( - [*]volatile graphics.Pixel, + [*]volatile graphics.Color, @ptrCast(@alignCast(self.current.bytes)) )[0..self.current.bytes.len / 4], }; |