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

This commit is contained in:
2024-11-11 13:47:01 +01:00
parent 8b3f863404
commit d2d655c829
10 changed files with 23 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ pub fn main() !void {
const allocator = gpa.allocator();
var app: App = .{};
const renderer: App.Renderer = .{};
var renderer: App.Renderer = .{};
// FIX: when not running fullscreen, the application needs to screen down accordingly to display the contents
// -> size hint how much should it use?
@@ -142,6 +142,6 @@ pub fn main() !void {
for (events.items) |e| {
app.postEvent(e);
}
try layout.render(renderer);
try layout.render(&renderer);
}
}