Commit Graph

12 Commits (df9ca2e0ce839c53699fd6b9e12d3a84e8ac013b)

Author SHA1 Message Date
Pierre Ossman 33a113a475 Handle empty rects in RAW decoder as well
It was overlooked in the previous commit because we couldn't feed
empty data messages through the test framework.
4 years ago
Pierre Ossman 073737c8ac Handle empty rects from the server
These are very pointless for the server to send, but not a violation of
the protocol so we need to be able to handle them. We've seen this
happen in real world scenarios a few times.
4 years ago
Pierre Ossman ae1bc396bf Standardise on a single blit function
Keep everything simpler by always blitting in the same pixel format.
It's up to the decoders to convert if they need to.
4 years ago
Pierre Ossman c7a7ce70be Fix bad BasicCompression check in Tight decoder 4 years ago
Pierre Ossman 212e0f1a10 Move tile handling to Hextile decoder
It is only used there so no need for it to be in the general
Display class.
4 years ago
Samuel Mannehed b2d8db3f7b Standardize on camelCase in Decoders 4 years ago
Niko Lehto 9ca647667b Split api of inflate
Added ability to read data chunk wise.
4 years ago
Niko Lehto b690ae4c2d Move error handling to Inflate class
Every call wants this check so this should be done inside the class.
4 years ago
Niko Lehto 0b19961b06 Remove unused inflate argument
The value true was an invalid flush argument so it was in practice
unused.
4 years ago
Samuel Mannehed 0dcb896920 Update copyright to 2019 for modified files 4 years ago
Pierre Ossman d7198cbe5d Consume data properly in Hextile decoder
We accidentally removed the code updating the data index in 8a189a6,
resulting in the decoder newer consuming any data. So the data would
be parsed as the next rect, causing weird errors.
4 years ago
matt 408c005d3e Initial commit 5 years ago