Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various cleanups #3

Merged
merged 31 commits into from
Jul 7, 2014
Merged

Various cleanups #3

merged 31 commits into from
Jul 7, 2014

Conversation

CendioOssman
Copy link
Member

First part of a large cleanup. This portion contains bug fixes, removal of dead code and other (hopefully) safe changes.

Need to do more than a simple shift to get the appropriate
new value. This isn't quite as exact as a proper multiplication
and division, but the error is so small it's not worth the
extra cycles.
Forgot to check that we actually have a cursor from the server
before trying to switch back to it after dismissing the context menu.
There were also reports of them being broken last time we still
made use of them.
Get rid of unused shared MemOutStream and variable max length
functionality in the ZRLE encoder.
We have no use for it, so let's keep things simple.
Reduces header dependencies.
Custom compression level and JPEG on/off are not inherent parts of
the protocol negotiation so they do not belong in ConnParams. Let the
UI frontend handle such things instead.
Might as well make it inline at this point as well as it is used
heavily in other routines that convert entire blocks of pixels.
Make sure that the routines that convert between buffer
and rgb representations follow the same algorithm so it's
easier to compare them.
Zero the padding byte used when converting 24-bit RGB to 32-bit.
Consistently use the term stride rather than pitch. Also
consistently represent the stride in number of pixels rather
than number of bytes. There is so much code that assumes
proper alignment already that we do not need the extra resolution.
It's either not used, or no longer relevant.
@CendioOssman CendioOssman merged commit 5ad4d06 into TigerVNC:master Jul 7, 2014
@CendioOssman CendioOssman deleted the cleanup branch July 7, 2014 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant