mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Typo Corrections from https://goreportcard.com/ (#1042)
Correct typo found by https://goreportcard.com/
This commit is contained in:
parent
51f4ba1320
commit
c4dfc69c81
@ -211,7 +211,7 @@ func walk(n *Node, f func(n *Node) error) error {
|
|||||||
|
|
||||||
func (p *Page) Extend(count int) bool {
|
func (p *Page) Extend(count int) bool {
|
||||||
if p.rollbackExtension != nil {
|
if p.rollbackExtension != nil {
|
||||||
panic("packing: Extend cannot be called without rolling back or commiting")
|
panic("packing: Extend cannot be called without rolling back or committing")
|
||||||
}
|
}
|
||||||
|
|
||||||
if p.size >= p.maxSize {
|
if p.size >= p.maxSize {
|
||||||
|
@ -771,7 +771,7 @@ func (u *UserInterface) loop(context driver.UIContext) error {
|
|||||||
|
|
||||||
// On Windows, the focusing state might be always false (#987).
|
// On Windows, the focusing state might be always false (#987).
|
||||||
// On Windows, even if a window is in another workspace, vsync seems to work.
|
// On Windows, even if a window is in another workspace, vsync seems to work.
|
||||||
// Then let's assume the window is alwasy 'focused' as a workaround.
|
// Then let's assume the window is always 'focused' as a workaround.
|
||||||
if runtime.GOOS != "windows" {
|
if runtime.GOOS != "windows" {
|
||||||
unfocused = u.window.GetAttrib(glfw.Focused) == glfw.False
|
unfocused = u.window.GetAttrib(glfw.Focused) == glfw.False
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user