mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Modify docs
This commit is contained in:
parent
0fe8387a5a
commit
3e576c97f3
@ -31,12 +31,12 @@ type ImagePart struct {
|
||||
}
|
||||
|
||||
// DrawWholeImage draws the whole image.
|
||||
func DrawWholeImage(r *Image, image *Image, geo GeometryMatrix, color ColorMatrix) error {
|
||||
func DrawWholeImage(target *Image, image *Image, geo GeometryMatrix, color ColorMatrix) error {
|
||||
w, h := image.Size()
|
||||
parts := []ImagePart{
|
||||
{Rect{0, 0, float64(w), float64(h)}, Rect{0, 0, float64(w), float64(h)}},
|
||||
}
|
||||
return r.DrawImage(image, parts, geo, color)
|
||||
return target.DrawImage(image, parts, geo, color)
|
||||
}
|
||||
|
||||
// Filter represents the type of filter to be used when an image is maginified or minified.
|
||||
|
Loading…
Reference in New Issue
Block a user