diff --git a/artist/rectangle.go b/artist/rectangle.go index 36da6bb..6534f8b 100644 --- a/artist/rectangle.go +++ b/artist/rectangle.go @@ -70,12 +70,12 @@ func StrokeRectangle ( // top FillRectangle (destination, source, image.Rect ( bounds.Min.X, bounds.Min.Y, - insetBounds.Max.X, insetBounds.Min.Y)) + bounds.Max.X, insetBounds.Min.Y)) // bottom FillRectangle (destination, source, image.Rect ( bounds.Min.X, insetBounds.Max.Y, - insetBounds.Max.X, bounds.Max.Y)) + bounds.Max.X, bounds.Max.Y)) // left FillRectangle (destination, source, image.Rect ( diff --git a/elements/testing/mouse.go b/elements/testing/mouse.go index 350b01c..c6eabfa 100644 --- a/elements/testing/mouse.go +++ b/elements/testing/mouse.go @@ -39,7 +39,7 @@ func (element *Mouse) Handle (event tomo.Event) { element.Bounds()) artist.StrokeRectangle ( element.core, - artist.NewUniform(color.Black), 5, + artist.NewUniform(color.Black), 1, element.Bounds()) artist.Line ( element.core, artist.NewUniform(color.White), 1,