From 8cf449034c8831bee8be7e1ea6eb0099dc9457b8 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 1 Aug 2024 11:11:23 +0200 Subject: [PATCH] app: [Windows] remove redundant code Change f7aa4b5c8 changed the fullscreen implementation to no longer require the position and size of the fullscreen window. Signed-off-by: Elias Naur --- app/os_windows.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/os_windows.go b/app/os_windows.go index 0c354c8c..5e4a332c 100644 --- a/app/os_windows.go +++ b/app/os_windows.go @@ -736,10 +736,6 @@ func (w *window) Configure(options []Option) { case Fullscreen: swpStyle |= windows.SWP_NOMOVE | windows.SWP_NOSIZE - mi := windows.GetMonitorInfo(w.hwnd) - x, y = mi.Monitor.Left, mi.Monitor.Top - width = mi.Monitor.Right - mi.Monitor.Left - height = mi.Monitor.Bottom - mi.Monitor.Top showMode = windows.SW_SHOWMAXIMIZED } windows.SetWindowLong(w.hwnd, windows.GWL_STYLE, style)