summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}