mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
graphics: Add comment
This commit is contained in:
parent
b3d43c185b
commit
e0d1e35e81
1
image.go
1
image.go
@ -352,6 +352,7 @@ func NewImage(width, height int, filter Filter) (*Image, error) {
|
|||||||
func NewImageFromImage(img image.Image, filter Filter) (*Image, error) {
|
func NewImageFromImage(img image.Image, filter Filter) (*Image, error) {
|
||||||
size := img.Bounds().Size()
|
size := img.Bounds().Size()
|
||||||
w, h := size.X, size.Y
|
w, h := size.X, size.Y
|
||||||
|
// TODO: Return error when the image is too big!
|
||||||
eimg := &Image{
|
eimg := &Image{
|
||||||
width: w,
|
width: w,
|
||||||
height: h,
|
height: h,
|
||||||
|
Loading…
Reference in New Issue
Block a user