summaryrefslogtreecommitdiffstats
path: root/rfbserver.c
diff options
context:
space:
mode:
authordscho <dscho>2001-09-25 10:52:57 +0000
committerdscho <dscho>2001-09-25 10:52:57 +0000
commit94f04a8631dfcb3688e58dc579265981c107e005 (patch)
tree8a5f6bdfcf9c30cbd891c58223ad40908faf89d1 /rfbserver.c
parentcb3b9c77001189d2d0d72153f1c0667fd3f289f2 (diff)
downloadlibtdevnc-94f04a8631dfcb3688e58dc579265981c107e005.tar.gz
libtdevnc-94f04a8631dfcb3688e58dc579265981c107e005.zip
fix cursor bug; missing keysym; fix align problem on SGI; clean up cursor.c
clean up rfb.h a bit; endian issues
Diffstat (limited to 'rfbserver.c')
-rw-r--r--rfbserver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rfbserver.c b/rfbserver.c
index 3794f0a..df58ea3 100644
--- a/rfbserver.c
+++ b/rfbserver.c
@@ -25,6 +25,8 @@
#include <stdio.h>
#include <stdlib.h>
+#include "rfb.h"
+#include "region.h"
#include <unistd.h>
#include <pwd.h>
#include <sys/types.h>
@@ -34,8 +36,6 @@
#ifdef HAVE_PTHREADS
#include <pthread.h>
#endif
-#include "rfb.h"
-#include "region.h"
rfbClientPtr pointerClient = NULL; /* Mutex for pointer events */
@@ -273,7 +273,7 @@ rfbClientConnectionGone(cl)
free(cl->host);
/* Release the compression state structures if any. */
- if ( cl->compStreamInited == TRUE ) {
+ if ( cl->compStreamInited ) {
deflateEnd( &(cl->compStream) );
}
@@ -523,8 +523,8 @@ rfbProcessClientNormalMessage(cl)
cl->format.bitsPerPixel = msg.spf.format.bitsPerPixel;
cl->format.depth = msg.spf.format.depth;
- cl->format.bigEndian = (msg.spf.format.bigEndian ? 1 : 0);
- cl->format.trueColour = (msg.spf.format.trueColour ? 1 : 0);
+ cl->format.bigEndian = (msg.spf.format.bigEndian ? TRUE : FALSE);
+ cl->format.trueColour = (msg.spf.format.trueColour ? TRUE : FALSE);
cl->format.redMax = Swap16IfLE(msg.spf.format.redMax);
cl->format.greenMax = Swap16IfLE(msg.spf.format.greenMax);
cl->format.blueMax = Swap16IfLE(msg.spf.format.blueMax);