fixed tight encoding, added the QEMU extended keys message (no way to test it)

This commit is contained in:
amit bezalel
2018-02-10 01:41:02 +02:00
parent 37e11cd72e
commit f05c96d449
6 changed files with 40 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ func handleTightFilters(subencoding uint8, pixelFmt *common.PixelFormat, rect *c
if paletteSize == 2 {
dataLength = int(rect.Height) * ((int(rect.Width) + 7) / 8)
} else {
dataLength = int(rect.Width * rect.Height)
dataLength = int(rect.Width) * int(rect.Height)
}
_, err = r.ReadTightData(dataLength)
if err != nil {