mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 23:14:28 +01:00
uidriver/glfw: Rename variables
This commit is contained in:
parent
aad5db8939
commit
987f333d95
@ -61,8 +61,8 @@ type UserInterface struct {
|
|||||||
initCursorMode driver.CursorMode
|
initCursorMode driver.CursorMode
|
||||||
initWindowDecorated bool
|
initWindowDecorated bool
|
||||||
initWindowResizable bool
|
initWindowResizable bool
|
||||||
initWindowPositionX int
|
initWindowPositionXInDP int
|
||||||
initWindowPositionY int
|
initWindowPositionYInDP int
|
||||||
initScreenTransparent bool
|
initScreenTransparent bool
|
||||||
initIconImages []image.Image
|
initIconImages []image.Image
|
||||||
|
|
||||||
@ -88,8 +88,8 @@ var (
|
|||||||
origPosY: invalidPos,
|
origPosY: invalidPos,
|
||||||
initCursorMode: driver.CursorModeVisible,
|
initCursorMode: driver.CursorModeVisible,
|
||||||
initWindowDecorated: true,
|
initWindowDecorated: true,
|
||||||
initWindowPositionX: invalidPos,
|
initWindowPositionXInDP: invalidPos,
|
||||||
initWindowPositionY: invalidPos,
|
initWindowPositionYInDP: invalidPos,
|
||||||
vsync: true,
|
vsync: true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -290,8 +290,8 @@ func (u *UserInterface) setInitIconImages(iconImages []image.Image) {
|
|||||||
func (u *UserInterface) getInitWindowPosition() (int, int) {
|
func (u *UserInterface) getInitWindowPosition() (int, int) {
|
||||||
u.m.RLock()
|
u.m.RLock()
|
||||||
defer u.m.RUnlock()
|
defer u.m.RUnlock()
|
||||||
if u.initWindowPositionX != invalidPos && u.initWindowPositionY != invalidPos {
|
if u.initWindowPositionXInDP != invalidPos && u.initWindowPositionYInDP != invalidPos {
|
||||||
return u.initWindowPositionX, u.initWindowPositionY
|
return u.initWindowPositionXInDP, u.initWindowPositionYInDP
|
||||||
}
|
}
|
||||||
return invalidPos, invalidPos
|
return invalidPos, invalidPos
|
||||||
}
|
}
|
||||||
@ -300,8 +300,8 @@ func (u *UserInterface) setInitWindowPosition(x, y int) {
|
|||||||
u.m.Lock()
|
u.m.Lock()
|
||||||
defer u.m.Unlock()
|
defer u.m.Unlock()
|
||||||
|
|
||||||
u.initWindowPositionX = x
|
u.initWindowPositionXInDP = x
|
||||||
u.initWindowPositionY = y
|
u.initWindowPositionYInDP = y
|
||||||
}
|
}
|
||||||
|
|
||||||
// toDeviceIndependentPixel must be called from the main thread.
|
// toDeviceIndependentPixel must be called from the main thread.
|
||||||
|
Loading…
Reference in New Issue
Block a user