mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
parent
3745c0a2e0
commit
55657e72ae
@ -49,6 +49,11 @@ func getConsoleWindow() windows.HWND {
|
||||
// hideConsoleWindowOnWindows will hide the console window that is showing when
|
||||
// compiling on Windows without specifying the '-ldflags "-Hwindowsgui"' flag.
|
||||
func hideConsoleWindowOnWindows() {
|
||||
// In Xbox, GetWindowThreadProcessId might not exist.
|
||||
if user32.NewProc("GetWindowThreadProcessId").Find() != nil {
|
||||
return
|
||||
}
|
||||
|
||||
pid := windows.GetCurrentProcessId()
|
||||
|
||||
// Get the process ID of the console's creator.
|
||||
|
Loading…
Reference in New Issue
Block a user