summaryrefslogtreecommitdiff
path: root/src/screen/drm/pixel.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-02-12 12:48:11 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-02-12 12:48:11 +0100
commit9fd81c0b38b2b843c24fb61bf8cb5b7873deaa72 (patch)
treea2d4d76a4fcc1334d83c5538e684061913be24d3 /src/screen/drm/pixel.zig
parentdae5bc02b1c934075e95694953b4330676e21611 (diff)
graphics: add line
Diffstat (limited to 'src/screen/drm/pixel.zig')
-rw-r--r--src/screen/drm/pixel.zig18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/screen/drm/pixel.zig b/src/screen/drm/pixel.zig
index 7c99e52..8b13789 100644
--- a/src/screen/drm/pixel.zig
+++ b/src/screen/drm/pixel.zig
@@ -1,19 +1 @@
-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);
-}
-
-pub const Pixel = packed struct(u32) {
- blue: u8,
- green: u8,
- red: u8,
- _padding: u8 = 0x0,
-
- pub const Format = enum(u32) {
- xrgb8888 = pixel_format_code('X', 'R', '2', '4'),
- };
-};
-