ebiten: Bug fix: Wrong argument type at DrawImageWithShader

This commit is contained in:
Hajime Hoshi 2020-07-21 06:23:39 +09:00
parent a159f55520
commit ec9863dfef

View File

@ -364,7 +364,7 @@ type DrawImageWithShaderOptions struct {
// When the image i is disposed, DrawImageWithShader does nothing. // When the image i is disposed, DrawImageWithShader does nothing.
// //
// This API is experimental. // This API is experimental.
func (i *Image) DrawImageWithShader(img *Image, shader *Shader, options *DrawRectangleWithShaderOptions) { func (i *Image) DrawImageWithShader(img *Image, shader *Shader, options *DrawImageWithShaderOptions) {
w, h := img.Size() w, h := img.Size()
op := &DrawRectangleWithShaderOptions{ op := &DrawRectangleWithShaderOptions{
Images: [4]*Image{img}, Images: [4]*Image{img},