diff options
author | dscho <dscho> | 2008-01-30 20:38:37 +0000 |
---|---|---|
committer | dscho <dscho> | 2008-01-30 20:38:37 +0000 |
commit | 5b9b4543616db4cefc5eb052287a32f03fdd8e85 (patch) | |
tree | dd4e776380b2c295d86f3a9d3a2c6b4ce917079d /libvncserver/zrle.c | |
parent | ecc9d49fe47c81f2aff524cb244ae87d4d33fad3 (diff) | |
download | libtdevnc-5b9b4543616db4cefc5eb052287a32f03fdd8e85.tar.gz libtdevnc-5b9b4543616db4cefc5eb052287a32f03fdd8e85.zip |
ZYWRLE brown paper bag fix
While adjusting the coding style, three stupid mistakes happened. The
quality is _not_ just 1, 2, 3, but really 1, 3, 2. And the macros
ZYWRLE_PACK_COEFF() and ZYWRLE_UNPACK_COEFF() expand to more than one
statement, which means that we need curly brackets around them when they
are in an if clause.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncserver/zrle.c')
-rw-r--r-- | libvncserver/zrle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncserver/zrle.c b/libvncserver/zrle.c index 5481893..ae65061 100644 --- a/libvncserver/zrle.c +++ b/libvncserver/zrle.c @@ -116,9 +116,9 @@ rfbBool rfbSendRectEncodingZRLE(rfbClientPtr cl, int x, int y, int w, int h) if (cl->tightQualityLevel < 0) { zywrle_level = 1; } else if (cl->tightQualityLevel < 3) { - zywrle_level = 2; - } else if (cl->tightQualityLevel < 6) { zywrle_level = 3; + } else if (cl->tightQualityLevel < 6) { + zywrle_level = 2; } else { zywrle_level = 1; } |