summaryrefslogtreecommitdiff
path: root/src/screen/drm/encoder.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen/drm/encoder.zig')
-rw-r--r--src/screen/drm/encoder.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen/drm/encoder.zig b/src/screen/drm/encoder.zig
index 19630ab..2758ee8 100644
--- a/src/screen/drm/encoder.zig
+++ b/src/screen/drm/encoder.zig
@@ -1,6 +1,5 @@
const std = @import("std");
const drm = @import("root.zig");
-const Card = drm.Card;
pub const Encoder = struct {
const Self = @This();
@@ -17,13 +16,14 @@ pub const Encoder = struct {
dpi = 8,
};
+ card: drm.Card,
+
id: u32,
type: Kind,
possible_crtcs: u32,
possible_clones: u32,
- card: *Card,
- pub fn init(card: *Card, id: u32) !Self {
+ pub fn init(card: drm.Card, id: u32) !Self {
var raw = std.mem.zeroInit(drm.request.Encoder, .{ .id = id });
try card.request(.get_encoder, &raw);