mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
Fix transmission by file
This commit is contained in:
@@ -62,6 +62,10 @@ type SerializableImageFrame struct {
|
||||
Size int
|
||||
}
|
||||
|
||||
func (s SerializableImageFrame) NeededSize() int {
|
||||
return utils.IfElse(s.Is_opaque, 3, 4) * s.Width * s.Height
|
||||
}
|
||||
|
||||
func (s *ImageFrame) Serialize() SerializableImageFrame {
|
||||
return SerializableImageFrame{
|
||||
Width: s.Width, Height: s.Height, Left: s.Left, Top: s.Top,
|
||||
|
||||
Reference in New Issue
Block a user