diff options
| author | ewy <ewy0@protonmail.com> | 2026-08-14 12:32:05 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-08-14 12:32:05 +0200 |
| commit | 48215d06a6cc0753a839e58c3403d34f69c250d4 (patch) | |
| tree | 3c391d8edc2e52818072a48c7e36abefeb3b7671 /objs/root.go | |
| parent | bc3f852ea670e206fa3facc736a230f6b9d23920 (diff) | |
Diffstat (limited to 'objs/root.go')
| -rw-r--r-- | objs/root.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/objs/root.go b/objs/root.go index 44309ac..92f3804 100644 --- a/objs/root.go +++ b/objs/root.go @@ -11,8 +11,8 @@ type Root struct { } func (root *Root) Render(r *sdl.Renderer) { - r.SetDrawColor(0, 0, 0, 255) - r.Clear() + root.Safe(r.SetDrawColor(0, 0, 0, 255)) + root.Safe(r.Clear()) } func NewRoot(window *sdl.Window, children ...ecs.IsGameObject) ecs.IsGameObject { |
