diff --git a/pixelgl/canvas.go b/pixelgl/canvas.go index 7c2d78182618575174a95fbb3b65ff7e2e7699bf..b3a57a14dd2d8516d02f60eb8094d6700ae4ea04 100644 --- a/pixelgl/canvas.go +++ b/pixelgl/canvas.go @@ -159,8 +159,7 @@ func (c *Canvas) SetColorMask(col color.Color) { // SetBounds resizes the Canvas to the new bounds. Old content will be preserved. // -// If this Canvas was created using Slice-ing, then the relation between this Canvas and it's -// Original is unspecified (but Original will always return valid stuff). +// If the new Bounds fit into the Original capacity bounds, no new Canvas will be allocated. func (c *Canvas) SetBounds(bounds pixel.Rect) { c.bounds = bounds