mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 20:40:33 +08:00
[windows] Fix pos/getpos calls
This commit is contained in:
parent
dd20985952
commit
0c6864c7ed
@ -147,11 +147,11 @@ func (f *Frontend) WindowCenter() {
|
|||||||
|
|
||||||
func (f *Frontend) WindowSetPosition(x, y int) {
|
func (f *Frontend) WindowSetPosition(x, y int) {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
f.mainWindow.SetPosition(x, y)
|
f.mainWindow.SetPos(x, y)
|
||||||
}
|
}
|
||||||
func (f *Frontend) WindowGetPosition() (int, int) {
|
func (f *Frontend) WindowGetPosition() (int, int) {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
return f.mainWindow.GetPosition()
|
return f.mainWindow.Pos()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Frontend) WindowSetSize(width, height int) {
|
func (f *Frontend) WindowSetSize(width, height int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user