diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-01 16:19:47 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-01 16:19:47 +0100 |
| commit | 88aa2940b27044794d4dcb49c924a5df17cc0055 (patch) | |
| tree | e454101aef7a008d7fe2854eea4329507b8beb60 /src/screen/drm/card.zig | |
| parent | 857261e9be33e862795ae6228ea05caf20c1a9d5 (diff) | |
screen: add crtc
Diffstat (limited to 'src/screen/drm/card.zig')
| -rw-r--r-- | src/screen/drm/card.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screen/drm/card.zig b/src/screen/drm/card.zig index c5cca24..411716a 100644 --- a/src/screen/drm/card.zig +++ b/src/screen/drm/card.zig @@ -6,6 +6,7 @@ const cerror = @import("../cerror.zig"); const Resources = @import("resources.zig").Resources; const Connector = @import("connector/root.zig").Connector; const Encoder = @import("encoder/root.zig").Encoder; +const Crtc = @import("crtc/root.zig").Crtc; pub const Card = struct { @@ -47,4 +48,8 @@ pub const Card = struct { pub fn encoder(self: *Card, id: u32) !Encoder { return Encoder.init(self, id); } + + pub fn crtc(self: *Card, id: u32) !Crtc { + return Crtc.init(self, id); + } }; |