Minor typo fixes (#1793)

This commit is contained in:
Trevor Slocum 2021-09-01 01:17:54 -07:00 committed by GitHub
parent 2c5033e901
commit 3406430956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

8
run.go
View File

@ -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.
//

View File

@ -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)