mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
app/internal/wm: delete unused parameter
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -160,7 +160,7 @@ func initResources() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getWindowConstraints(cfg unit.Metric, opts *Options, d winDeltas) winConstraints {
|
func getWindowConstraints(cfg unit.Metric, opts *Options) winConstraints {
|
||||||
var minmax winConstraints
|
var minmax winConstraints
|
||||||
minmax.minWidth = int32(cfg.Px(opts.MinWidth))
|
minmax.minWidth = int32(cfg.Px(opts.MinWidth))
|
||||||
minmax.minHeight = int32(cfg.Px(opts.MinHeight))
|
minmax.minHeight = int32(cfg.Px(opts.MinHeight))
|
||||||
@@ -209,7 +209,7 @@ func createNativeWindow(opts *Options) (*window, error) {
|
|||||||
}
|
}
|
||||||
w := &window{
|
w := &window{
|
||||||
hwnd: hwnd,
|
hwnd: hwnd,
|
||||||
minmax: getWindowConstraints(cfg, opts, deltas),
|
minmax: getWindowConstraints(cfg, opts),
|
||||||
deltas: deltas,
|
deltas: deltas,
|
||||||
opts: opts,
|
opts: opts,
|
||||||
}
|
}
|
||||||
@@ -460,7 +460,7 @@ func (w *window) draw(sync bool) {
|
|||||||
}
|
}
|
||||||
dpi := windows.GetWindowDPI(w.hwnd)
|
dpi := windows.GetWindowDPI(w.hwnd)
|
||||||
cfg := configForDPI(dpi)
|
cfg := configForDPI(dpi)
|
||||||
w.minmax = getWindowConstraints(cfg, w.opts, w.deltas)
|
w.minmax = getWindowConstraints(cfg, w.opts)
|
||||||
w.w.Event(FrameEvent{
|
w.w.Event(FrameEvent{
|
||||||
FrameEvent: system.FrameEvent{
|
FrameEvent: system.FrameEvent{
|
||||||
Now: time.Now(),
|
Now: time.Now(),
|
||||||
|
|||||||
Reference in New Issue
Block a user