mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-26 14:37:59 +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
|
@ -55,7 +55,7 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
|||
ScreenSize: message.ScreenSize{
|
||||
Width: size.Width,
|
||||
Height: size.Height,
|
||||
Rate: int(size.Rate),
|
||||
Rate: size.Rate,
|
||||
},
|
||||
Members: members,
|
||||
ImplicitHosting: h.sessions.ImplicitHosting(),
|
||||
|
@ -70,7 +70,7 @@ func (h *MessageHandlerCtx) systemAdmin(session types.Session) error {
|
|||
screenSizesList = append(screenSizesList, message.ScreenSize{
|
||||
Width: size.Width,
|
||||
Height: size.Height,
|
||||
Rate: int(fps),
|
||||
Rate: fps,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue