Implemented Xorg initialization code

This commit is contained in:
Lorenzo Torres 2025-08-04 02:46:36 +02:00
parent f894fb317d
commit 097a6a9b5c
11 changed files with 96 additions and 29 deletions

View file

@ -1,4 +1,4 @@
const c = @import("c.zig").c;
const c = @import("sideros").c;
const std = @import("std");
const Renderer = @import("sideros").Renderer;
@ -136,7 +136,7 @@ pub fn init(allocator: std.mem.Allocator) !void {
_ = c.wl_display_dispatch(display);
}
var renderer = try Renderer.init(allocator, @ptrCast(display), @ptrCast(surface));
var renderer = try Renderer.init(@TypeOf(display), @TypeOf(surface), allocator, display, surface);
defer renderer.deinit();
try renderer.render();