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.
2021-03-29 12:47:30 +03:00
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.
2021-03-29 12:39:31 +03:00
Pierre Ossman
c7a7ce70be
Fix bad BasicCompression check in Tight decoder
2021-03-29 12:37:29 +03:00
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.
2021-03-29 12:36:23 +03:00
Samuel Mannehed
b2d8db3f7b
Standardize on camelCase in Decoders
2021-03-29 12:34:29 +03:00
Niko Lehto
9ca647667b
Split api of inflate
...
Added ability to read data chunk wise.
2021-03-29 12:09:40 +03:00
Niko Lehto
b690ae4c2d
Move error handling to Inflate class
...
Every call wants this check so this should be done inside the class.
2021-03-29 12:09:32 +03:00
Niko Lehto
0b19961b06
Remove unused inflate argument
...
The value true was an invalid flush argument so it was in practice
unused.
2021-03-29 12:09:21 +03:00
Samuel Mannehed
0dcb896920
Update copyright to 2019 for modified files
2021-03-29 11:54:44 +03:00
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.
2021-03-29 11:33:25 +03:00
matt
408c005d3e
Initial commit
2020-09-20 12:16:44 +00:00