From 63caca720b5452b2cfd2ad44fc30257b1a0bcdb4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 21 Mar 2020 22:16:23 +0900 Subject: [PATCH] ui: Bug fix: Compile error on Windows --- internal/glfw/glfw_windows.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/glfw/glfw_windows.go b/internal/glfw/glfw_windows.go index 68702d515..9229c3151 100644 --- a/internal/glfw/glfw_windows.go +++ b/internal/glfw/glfw_windows.go @@ -181,6 +181,11 @@ func (w *Window) Maximize() { panicError() } +func (w *Window) Restore() { + glfwDLL.call("glfwRestoreWindow", w.w) + panicError() +} + func (w *Window) SetCharModsCallback(cbfun CharModsCallback) (previous CharModsCallback) { var gcb uintptr if cbfun != nil {