mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user