mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-13 13:38:16 +08:00
fix windows gethandle
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
|
||||
package xfyne
|
||||
|
||||
import "fyne.io/fyne/v2"
|
||||
import (
|
||||
"fyne.io/fyne/v2"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func GetWindowHandle(window fyne.Window) uintptr {
|
||||
glfwWindow := getGlfwWindow(window)
|
||||
if glfwWindow == nil {
|
||||
return 0
|
||||
}
|
||||
return uintptr(glfwWindow.GetWin32Window())
|
||||
return uintptr(unsafe.Pointer(glfwWindow.GetWin32Window()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user