From a5ce1401312b97fd447d00656b250571c4db4880 Mon Sep 17 00:00:00 2001 From: ewy Date: Thu, 13 Aug 2026 14:18:13 +0200 Subject: use ecs.IsGameObject instead of cast --- objs/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'objs/root.go') diff --git a/objs/root.go b/objs/root.go index 59e0c6a..649200d 100644 --- a/objs/root.go +++ b/objs/root.go @@ -10,7 +10,7 @@ type Root struct { } func (root *Root) Render(r *sdl.Renderer) { - r.SetDrawColor(255, 255, 255, 255) + r.SetDrawColor(0, 0, 0, 255) r.Clear() } @@ -21,5 +21,5 @@ func NewRoot(children ...ecs.IsGameObject) ecs.IsGameObject { Children: children, }, } - return r.GameObject + return r } -- cgit v1.3.1