mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
Transmission format should be per frame
This commit is contained in:
@@ -34,7 +34,7 @@ func add_frame(imgd *image_data, img image.Image, is_opaque bool) {
|
||||
rgb = &images.NRGB{Pix: m.Slice(), Stride: 3 * f.width, Rect: dest_rect}
|
||||
f.shm = m
|
||||
}
|
||||
imgd.format_uppercase = "RGB"
|
||||
f.transmission_format_uppercase = "RGB"
|
||||
f.in_memory_bytes = rgb.Pix
|
||||
final_img = rgb
|
||||
} else {
|
||||
@@ -46,7 +46,7 @@ func add_frame(imgd *image_data, img image.Image, is_opaque bool) {
|
||||
rgba = &image.NRGBA{Pix: m.Slice(), Stride: 4 * f.width, Rect: dest_rect}
|
||||
f.shm = m
|
||||
}
|
||||
imgd.format_uppercase = "RGBA"
|
||||
f.transmission_format_uppercase = "RGBA"
|
||||
f.in_memory_bytes = rgba.Pix
|
||||
final_img = rgba
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user