From a335b0c5a3e1e2c9cf4ae8281b801e3d30d7e65c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 12 Mar 2018 02:01:30 +0900 Subject: [PATCH] graphics: Fix comments about MaxImageSize --- image.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/image.go b/image.go index 74902e62a..974e2da48 100644 --- a/image.go +++ b/image.go @@ -353,7 +353,7 @@ type DrawImageOptions struct { // NewImage returns an empty image. // -// If width or height is less than 1 or more than MaxImageSize, NewImage panics. +// If width or height is less than 1 or more than device-dependent maximum size, NewImage panics. // // filter argument is just for backward compatibility. // If you are not sure, specify FilterDefault. @@ -393,7 +393,7 @@ func newImageWithoutInit(width, height int) *Image { // // Note that volatile images are internal only and will never be source of drawing. // -// If width or height is less than 1 or more than MaxImageSize, newVolatileImage panics. +// If width or height is less than 1 or more than device-dependent maximum size, newVolatileImage panics. // // Error returned by newVolatileImage is always nil as of 1.5.0-alpha. func newVolatileImage(width, height int, filter Filter) *Image { @@ -408,7 +408,7 @@ func newVolatileImage(width, height int, filter Filter) *Image { // NewImageFromImage creates a new image with the given image (source). // -// If source's width or height is less than 1 or more than MaxImageSize, NewImageFromImage panics. +// If source's width or height is less than 1 or more than device-dependent maximum size, NewImageFromImage panics. // // filter argument is just for backward compatibility. // If you are not sure, specify FilterDefault.