mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 04:22:05 +01:00
Minor typo fixes (#1793)
This commit is contained in:
parent
2c5033e901
commit
3406430956
8
run.go
8
run.go
@ -337,7 +337,7 @@ const (
|
|||||||
// FPSModeVsyncOn is the default mode.
|
// FPSModeVsyncOn is the default mode.
|
||||||
FPSModeVsyncOn FPSModeType = driver.FPSModeVsyncOn
|
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.
|
// the game is updated whenever possible.
|
||||||
//
|
//
|
||||||
// Be careful that FPSModeVsyncOffMaximum might consume a lot of battery power.
|
// 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.
|
// The game's Update is called based on the specified TPS.
|
||||||
FPSModeVsyncOffMaximum FPSModeType = driver.FPSModeVsyncOffMaximum
|
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.
|
// the game is updated only when necessary.
|
||||||
//
|
//
|
||||||
// FPSModeVsyncOffMinimum is useful for relatively static applications to save battery power.
|
// FPSModeVsyncOffMinimum is useful for relatively static applications to save battery power.
|
||||||
@ -365,7 +365,7 @@ func FPSMode() FPSModeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SetFPSMode sets the FPS mode.
|
// SetFPSMode sets the FPS mode.
|
||||||
// The default FPS mode is FPSModeVsycnOn.
|
// The default FPS mode is FPSModeVsyncOn.
|
||||||
//
|
//
|
||||||
// SetFPSMode is concurrent-safe.
|
// SetFPSMode is concurrent-safe.
|
||||||
func SetFPSMode(mode FPSModeType) {
|
func SetFPSMode(mode FPSModeType) {
|
||||||
@ -441,7 +441,7 @@ func SetScreenTransparent(transparent bool) {
|
|||||||
// SetInitFocused sets whether the application is focused on show.
|
// SetInitFocused sets whether the application is focused on show.
|
||||||
// The default value is true, i.e., the application is focused.
|
// 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.
|
// 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.
|
// SetInitFocused does nothing on mobile.
|
||||||
//
|
//
|
||||||
|
@ -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.
|
// A negative value indicates the size is not limited.
|
||||||
//
|
//
|
||||||
// WindowMaxSize is concurrent-safe.
|
// WindowSizeLimits is concurrent-safe.
|
||||||
func WindowSizeLimits() (minw, minh, maxw, maxh int) {
|
func WindowSizeLimits() (minw, minh, maxw, maxh int) {
|
||||||
if w := uiDriver().Window(); w != nil {
|
if w := uiDriver().Window(); w != nil {
|
||||||
return w.SizeLimits()
|
return w.SizeLimits()
|
||||||
@ -213,7 +213,7 @@ func WindowSizeLimits() (minw, minh, maxw, maxh int) {
|
|||||||
// SetWindowSizeLimits sets the limitation of the window size on desktops.
|
// SetWindowSizeLimits sets the limitation of the window size on desktops.
|
||||||
// A negative value indicates the size is not limited.
|
// A negative value indicates the size is not limited.
|
||||||
//
|
//
|
||||||
// SetWindowMaxSize is concurrent-safe.
|
// SetWindowSizeLimits is concurrent-safe.
|
||||||
func SetWindowSizeLimits(minw, minh, maxw, maxh int) {
|
func SetWindowSizeLimits(minw, minh, maxw, maxh int) {
|
||||||
if w := uiDriver().Window(); w != nil {
|
if w := uiDriver().Window(); w != nil {
|
||||||
w.SetSizeLimits(minw, minh, maxw, maxh)
|
w.SetSizeLimits(minw, minh, maxw, maxh)
|
||||||
|
Loading…
Reference in New Issue
Block a user