diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 19:58:26 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 19:58:26 +0100 |
| commit | 3f4375a14218796cbd7bfff1c8cfff0f7bb1f6df (patch) | |
| tree | 1521b91b8f99af588156058b5f9aa12bb1626ac7 /src/screen/drm/frame-buffer/pixelformat.zig | |
| parent | 8d062a90b1ffbe9e00334fa3e9e939406bd32141 (diff) | |
change .editorconfig
Diffstat (limited to 'src/screen/drm/frame-buffer/pixelformat.zig')
| -rw-r--r-- | src/screen/drm/frame-buffer/pixelformat.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/screen/drm/frame-buffer/pixelformat.zig b/src/screen/drm/frame-buffer/pixelformat.zig index a4b3f9a..ec98900 100644 --- a/src/screen/drm/frame-buffer/pixelformat.zig +++ b/src/screen/drm/frame-buffer/pixelformat.zig @@ -1,11 +1,11 @@ fn pixel_format_code(comptime a: u8, comptime b: u8, comptime c: u8, comptime d: u8) u32 { - return @as(u32, @intCast(a)) | - (@as(u32, @intCast(b)) << 8) | - (@as(u32, @intCast(c)) << 16) | - (@as(u32, @intCast(d)) << 24); + return @as(u32, @intCast(a)) | + (@as(u32, @intCast(b)) << 8) | + (@as(u32, @intCast(c)) << 16) | + (@as(u32, @intCast(d)) << 24); } pub const PixelFormat = enum(u32) { - xrgb8888 = pixel_format_code('X', 'R', '2', '4'), + xrgb8888 = pixel_format_code('X', 'R', '2', '4'), }; |