From bd1b9cdb9b108ae34ee22764d67bad5dc87c42e2 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 8 Aug 2022 03:30:37 +0900 Subject: [PATCH] internal/mipmap: rename ReplacePixels -> WritePixels Updates #2236 --- internal/mipmap/mipmap.go | 2 +- internal/ui/image.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/mipmap/mipmap.go b/internal/mipmap/mipmap.go index 526416cb7..45b7f9c0a 100644 --- a/internal/mipmap/mipmap.go +++ b/internal/mipmap/mipmap.go @@ -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() } diff --git a/internal/ui/image.go b/internal/ui/image.go index 904f5962a..6f3c9b110 100644 --- a/internal/ui/image.go +++ b/internal/ui/image.go @@ -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) {