5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 20:21:01 +08:00

[windows] Fix pos/getpos calls

This commit is contained in:
Lea Anthony 2022-02-04 07:45:44 +11:00
parent dd20985952
commit 0c6864c7ed

View File

@ -147,11 +147,11 @@ func (f *Frontend) WindowCenter() {
func (f *Frontend) WindowSetPosition(x, y int) {
runtime.LockOSThread()
f.mainWindow.SetPosition(x, y)
f.mainWindow.SetPos(x, y)
}
func (f *Frontend) WindowGetPosition() (int, int) {
runtime.LockOSThread()
return f.mainWindow.GetPosition()
return f.mainWindow.Pos()
}
func (f *Frontend) WindowSetSize(width, height int) {