mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
xorg refactor.
This commit is contained in:
@ -15,7 +15,7 @@ type Capture struct {
|
||||
VideoCodec string
|
||||
VideoParams string
|
||||
VideoBitrate uint
|
||||
MaxFPS int
|
||||
MaxFPS int16
|
||||
}
|
||||
|
||||
func (Capture) Init(cmd *cobra.Command) error {
|
||||
@ -135,5 +135,5 @@ func (s *Capture) Set() {
|
||||
s.VideoParams = viper.GetString("video")
|
||||
s.VideoBitrate = viper.GetUint("video_bitrate")
|
||||
|
||||
s.MaxFPS = viper.GetInt("max_fps")
|
||||
s.MaxFPS = int16(viper.GetInt("max_fps"))
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ type Desktop struct {
|
||||
|
||||
ScreenWidth int
|
||||
ScreenHeight int
|
||||
ScreenRate int
|
||||
ScreenRate int16
|
||||
}
|
||||
|
||||
func (Desktop) Init(cmd *cobra.Command) error {
|
||||
@ -45,7 +45,7 @@ func (s *Desktop) Set() {
|
||||
if err1 == nil && err2 == nil && err3 == nil {
|
||||
s.ScreenWidth = int(width)
|
||||
s.ScreenHeight = int(height)
|
||||
s.ScreenRate = int(rate)
|
||||
s.ScreenRate = int16(rate)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user