diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-07 10:38:10 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-07 10:38:10 +0200 |
| commit | 2dc0e353fdd2752348b5bb7da17c76ddf30466f5 (patch) | |
| tree | 6699a7cb6cb9ed06f35e0d2082b198c887d56007 /selection | |
| parent | 781463ae65f33bf84c27cc340191c36211eb0da8 (diff) | |
Fix selection rectangle stroke width for screen-space rendering
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'selection')
| -rw-r--r-- | selection/selection.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selection/selection.go b/selection/selection.go index 1c702ee..8ba1fb2 100644 --- a/selection/selection.go +++ b/selection/selection.go @@ -140,5 +140,5 @@ func (s *GlobalSelection) Unselect(selectables []Selectable) { } func (s *GlobalSelection) Draw(dst *ebiten.Image, screenCursor physics.Point) { - vector.StrokeRect(dst, float32(s.startScreen.X), float32(s.startScreen.Y), float32(screenCursor.X-s.startScreen.X), float32(screenCursor.Y-s.startScreen.Y), 10.0, color.RGBA{256 * 3 / 16, 256 * 3 / 16, 256 * 3 / 16, 256 / 4}, true) + vector.StrokeRect(dst, float32(s.startScreen.X), float32(s.startScreen.Y), float32(screenCursor.X-s.startScreen.X), float32(screenCursor.Y-s.startScreen.Y), 2.0, color.RGBA{256 * 3 / 16, 256 * 3 / 16, 256 * 3 / 16, 256 / 4}, true) } |
