From 8864ce1291f810bb9c4a189c19ff6f92698e0adb Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 7 Feb 2023 12:05:43 +0900 Subject: [PATCH] all: update comments --- internal/processtest/testdata/issue2079.go | 2 +- internal/restorable/doc.go | 2 +- internal/ui/ui_glfw_unix.go | 2 +- text/text.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/processtest/testdata/issue2079.go b/internal/processtest/testdata/issue2079.go index 19fe6fd4d..fc3eeb598 100644 --- a/internal/processtest/testdata/issue2079.go +++ b/internal/processtest/testdata/issue2079.go @@ -39,7 +39,7 @@ func (g *Game) Draw(screen *ebiten.Image) { } func (g *Game) Layout(width, height int) (int, int) { - // Ebiten's image function should be able to be called even in Layout. + // Ebitengine's image function should be able to be called even in Layout. done := make(chan struct{}) timeout := time.After(time.Second) go func() { diff --git a/internal/restorable/doc.go b/internal/restorable/doc.go index 9d23d7364..fb51cae66 100644 --- a/internal/restorable/doc.go +++ b/internal/restorable/doc.go @@ -24,7 +24,7 @@ // to make more room on GPU memory. // This can happen e.g. when GPU memory usage is high, or just switching applications // might cause context lost on mobiles. -// As Ebiten's image data is on GPU memory, the game can't continue when context lost happens +// As Ebitengine's image data is on GPU memory, the game can't continue when context lost happens // without restoring image information. // The package restorable is the package to record information for such restoring. // diff --git a/internal/ui/ui_glfw_unix.go b/internal/ui/ui_glfw_unix.go index 64d0bad3a..a4a0ae6f7 100644 --- a/internal/ui/ui_glfw_unix.go +++ b/internal/ui/ui_glfw_unix.go @@ -89,7 +89,7 @@ func videoModeScaleUncached(m *glfw.Monitor) float64 { // Note: GLFW currently returns physical pixel sizes, // but we need to predict the window system-side size of the fullscreen window - // for Ebiten's `ScreenSizeInFullscreen` public API. + // for Ebitengine's `ScreenSizeInFullscreen` public API. // Also at the moment we need this prior to switching to fullscreen, but that might be replaceable. // So this function computes the ratio of physical per logical pixels. xconn, err := xgb.NewConn() diff --git a/text/text.go b/text/text.go index 812a0d4f4..0e466c794 100644 --- a/text/text.go +++ b/text/text.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Package text offers functions to draw texts on an Ebiten's image. +// Package text offers functions to draw texts on an Ebitengine's image. // // For the example using a TTF font, see font package in the examples. package text