From 3406430956c1425bc0c22c51fe3eb9a041cfa270 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Wed, 1 Sep 2021 01:17:54 -0700 Subject: [PATCH] Minor typo fixes (#1793) --- run.go | 8 ++++---- window.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/run.go b/run.go index 71c39c979..f779d7efe 100644 --- a/run.go +++ b/run.go @@ -337,7 +337,7 @@ const ( // FPSModeVsyncOn is the default mode. FPSModeVsyncOn FPSModeType = driver.FPSModeVsyncOn - // FPSModeVsyncOffMaximum indicates that the game doesn't sync with vsycn, and + // FPSModeVsyncOffMaximum indicates that the game doesn't sync with vsync, and // the game is updated whenever possible. // // Be careful that FPSModeVsyncOffMaximum might consume a lot of battery power. @@ -346,7 +346,7 @@ const ( // The game's Update is called based on the specified TPS. FPSModeVsyncOffMaximum FPSModeType = driver.FPSModeVsyncOffMaximum - // FPSModeVsyncOffMinimum indicates that the game doesn't sync with vsycn, and + // FPSModeVsyncOffMinimum indicates that the game doesn't sync with vsync, and // the game is updated only when necessary. // // FPSModeVsyncOffMinimum is useful for relatively static applications to save battery power. @@ -365,7 +365,7 @@ func FPSMode() FPSModeType { } // SetFPSMode sets the FPS mode. -// The default FPS mode is FPSModeVsycnOn. +// The default FPS mode is FPSModeVsyncOn. // // SetFPSMode is concurrent-safe. func SetFPSMode(mode FPSModeType) { @@ -441,7 +441,7 @@ func SetScreenTransparent(transparent bool) { // SetInitFocused sets whether the application is focused on show. // The default value is true, i.e., the application is focused. // Note that the application does not proceed if this is not focused by default. -// This behavior can be changed by SetRunnableInBackground. +// This behavior can be changed by SetRunnableOnUnfocused. // // SetInitFocused does nothing on mobile. // diff --git a/window.go b/window.go index e29404c06..505db37ed 100644 --- a/window.go +++ b/window.go @@ -199,10 +199,10 @@ func SetWindowSize(width, height int) { } } -// WindowSizeLimist returns the limitation of the window size on desktops. +// WindowSizeLimits returns the limitation of the window size on desktops. // A negative value indicates the size is not limited. // -// WindowMaxSize is concurrent-safe. +// WindowSizeLimits is concurrent-safe. func WindowSizeLimits() (minw, minh, maxw, maxh int) { if w := uiDriver().Window(); w != nil { return w.SizeLimits() @@ -213,7 +213,7 @@ func WindowSizeLimits() (minw, minh, maxw, maxh int) { // SetWindowSizeLimits sets the limitation of the window size on desktops. // A negative value indicates the size is not limited. // -// SetWindowMaxSize is concurrent-safe. +// SetWindowSizeLimits is concurrent-safe. func SetWindowSizeLimits(minw, minh, maxw, maxh int) { if w := uiDriver().Window(); w != nil { w.SetSizeLimits(minw, minh, maxw, maxh)