summaryrefslogtreecommitdiff
path: root/objs/cursor.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-13 14:34:42 +0200
committerewy <ewy0@protonmail.com>2026-08-13 14:34:42 +0200
commitd0fe29558b040a11c5c8a744c37fbd2e3826f6c4 (patch)
tree77d0fa040f78c1eeec3843de32387fb1ba049b13 /objs/cursor.go
parente8bbe5a8001bcb51ed26d0f7733cb77621164e53 (diff)
parent2850cec58e7e726ef9b25750bf4522259329c849 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'objs/cursor.go')
-rw-r--r--objs/cursor.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/objs/cursor.go b/objs/cursor.go
index dd09a8b..f6d412b 100644
--- a/objs/cursor.go
+++ b/objs/cursor.go
@@ -12,11 +12,12 @@ type Cursor struct {
func (c *Cursor) Render(renderer *sdl.Renderer) {
renderer.SetDrawColor(255, 0, 0, 255)
+ size := float32(13)
r := &sdl.FRect{
- X: c.Position.X - 5,
- Y: c.Position.Y - 5,
- W: 10,
- H: 10,
+ X: c.Position.X - size/2,
+ Y: c.Position.Y - size/2,
+ W: size,
+ H: size,
}
renderer.RenderRect(r)
}