mod: change interface for rendering of Layouts and Widgets to use a non-const pointer to the renderer instead
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 38s
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 38s
This commit is contained in:
@@ -31,7 +31,7 @@ pub fn Widget(comptime Event: type, comptime Renderer: type) type {
|
||||
return null;
|
||||
}
|
||||
|
||||
pub fn render(this: *@This(), renderer: Renderer) !void {
|
||||
pub fn render(this: *@This(), renderer: *Renderer) !void {
|
||||
try renderer.clear(this.size);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user