mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
go lint
This commit is contained in:
parent
baf18ba479
commit
df6ebd5a9c
@ -52,7 +52,7 @@ func NewImage(width, height int, filter Filter) (*Image, error) {
|
|||||||
return currentUI.newImage(width, height, glFilter(filter))
|
return currentUI.newImage(width, height, glFilter(filter))
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewImage creates a new image with the given image (img).
|
// NewImageFromImage creates a new image with the given image (img).
|
||||||
func NewImageFromImage(img image.Image, filter Filter) (*Image, error) {
|
func NewImageFromImage(img image.Image, filter Filter) (*Image, error) {
|
||||||
return currentUI.newImageFromImage(img, glFilter(filter))
|
return currentUI.newImageFromImage(img, glFilter(filter))
|
||||||
}
|
}
|
||||||
|
2
image.go
2
image.go
@ -100,7 +100,7 @@ type syncer interface {
|
|||||||
Sync(func())
|
Sync(func())
|
||||||
}
|
}
|
||||||
|
|
||||||
// An image represents an image.
|
// Image represents an image.
|
||||||
// The pixel format is non alpha-premultiplied.
|
// The pixel format is non alpha-premultiplied.
|
||||||
type Image struct {
|
type Image struct {
|
||||||
syncer syncer
|
syncer syncer
|
||||||
|
Loading…
Reference in New Issue
Block a user