mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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) {
|
||||
size := img.Bounds().Size()
|
||||
w, h := size.X, size.Y
|
||||
// TODO: Return error when the image is too big!
|
||||
eimg := &Image{
|
||||
width: w,
|
||||
height: h,
|
||||
|
Loading…
Reference in New Issue
Block a user