app: [Windows] don't re-compute window size when maximizing

The redraw machinery will take care of it like any other resize.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-06-25 11:05:48 +01:00
parent 8ef0ad43cb
commit 5e7bf1716e
-2
View File
@@ -598,8 +598,6 @@ func (w *window) Configure(options []Option) {
// Set window style.
style := windows.GetWindowLong(w.hwnd, windows.GWL_STYLE)
windows.SetWindowLong(w.hwnd, windows.GWL_STYLE, style|windows.WS_OVERLAPPEDWINDOW)
mi := windows.GetMonitorInfo(w.hwnd).Monitor
w.config.Size = image.Point{X: int(mi.Right - mi.Left), Y: int(mi.Bottom - mi.Top)}
windows.ShowWindow(w.hwnd, windows.SW_SHOWMAXIMIZED)
case Windowed: