internal/mipmap: rename ReplacePixels -> WritePixels

Updates #2236
This commit is contained in:
Hajime Hoshi 2022-08-08 03:30:37 +09:00
parent 7061b34222
commit bd1b9cdb9b
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func (m *Mipmap) DumpScreenshot(graphicsDriver graphicsdriver.Graphics, name str
return m.orig.DumpScreenshot(graphicsDriver, name, blackbg)
}
func (m *Mipmap) ReplacePixels(pix []byte, x, y, width, height int) {
func (m *Mipmap) WritePixels(pix []byte, x, y, width, height int) {
m.orig.WritePixels(pix, x, y, width, height)
m.disposeMipmaps()
}

View File

@ -72,7 +72,7 @@ func (i *Image) DrawTriangles(srcs [graphics.ShaderImageCount]*Image, vertices [
}
func (i *Image) ReplacePixels(pix []byte, x, y, width, height int) {
i.mipmap.ReplacePixels(pix, x, y, width, height)
i.mipmap.WritePixels(pix, x, y, width, height)
}
func (i *Image) ReadPixels(pixels []byte, x, y, width, height int) {