diff options
| author | usr <usr@devuan> | 2026-08-13 14:56:45 +0200 |
|---|---|---|
| committer | usr <usr@devuan> | 2026-08-13 14:56:45 +0200 |
| commit | 0c89a5fcff9e09e95ee75ba63c73e13351a9ef35 (patch) | |
| tree | 469ca1fdda537a84a0953c125cc3b1df3e84b85f /objs | |
| parent | 874eebf5d22670993428a189acd479cd9c998e35 (diff) | |
iets grotere cursor
Diffstat (limited to 'objs')
| -rw-r--r-- | objs/cursor.go | 9 |
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) } |
