clarify doc

This commit is contained in:
faiface 2017-03-08 16:57:02 +01:00
parent d797cee6ce
commit 0127a8ae21
1 changed files with 1 additions and 2 deletions

View File

@ -159,8 +159,7 @@ func (c *Canvas) SetColorMask(col color.Color) {
// SetBounds resizes the Canvas to the new bounds. Old content will be preserved. // 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 // If the new Bounds fit into the Original capacity bounds, no new Canvas will be allocated.
// Original is unspecified (but Original will always return valid stuff).
func (c *Canvas) SetBounds(bounds pixel.Rect) { func (c *Canvas) SetBounds(bounds pixel.Rect) {
c.bounds = bounds c.bounds = bounds