mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-03 18:08:03 +02:00
set screen size using struct.
This commit is contained in:
parent
0e09609c67
commit
3bbe3781c8
8 changed files with 30 additions and 21 deletions
|
@ -12,7 +12,11 @@ func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.Sc
|
|||
return nil
|
||||
}
|
||||
|
||||
if err := h.desktop.ChangeScreenSize(payload.Width, payload.Height, payload.Rate); err != nil {
|
||||
if err := h.desktop.SetScreenSize(types.ScreenSize{
|
||||
Width: payload.Width,
|
||||
Height: payload.Height,
|
||||
Rate: payload.Rate,
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue