mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Fix frame origins not be de-serialized
This commit is contained in:
@@ -155,9 +155,9 @@ func ImageFrameFromSerialized(s SerializableImageFrame, data []byte) (aa *ImageF
|
||||
return nil, fmt.Errorf("serialized image data has size: %d != %d", len(data), expected)
|
||||
}
|
||||
if s.Is_opaque {
|
||||
ans.Img, err = NewNRGBWithContiguousRGBPixels(data, s.Width, s.Height)
|
||||
ans.Img, err = NewNRGBWithContiguousRGBPixels(data, s.Left, s.Top, s.Width, s.Height)
|
||||
} else {
|
||||
ans.Img, err = NewNRGBAWithContiguousRGBAPixels(data, s.Width, s.Height)
|
||||
ans.Img, err = NewNRGBAWithContiguousRGBAPixels(data, s.Left, s.Top, s.Width, s.Height)
|
||||
}
|
||||
return &ans, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user