summaryrefslogtreecommitdiffstats
path: root/tight.c
diff options
context:
space:
mode:
authordscho <dscho>2001-10-06 17:45:42 +0000
committerdscho <dscho>2001-10-06 17:45:42 +0000
commit446f334cc1ee67b280e218ae58fef34d5b063cea (patch)
treef238279505d71a241b20154a43aee10b7acde3fa /tight.c
parent018e90db5918a75ceaf3835be084e2387f31a47e (diff)
downloadlibtdevnc-446f334cc1ee67b280e218ae58fef34d5b063cea.tar.gz
libtdevnc-446f334cc1ee67b280e218ae58fef34d5b063cea.zip
WIN32 compatibility, removed kbdptr.c
Diffstat (limited to 'tight.c')
-rw-r--r--tight.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tight.c b/tight.c
index db0d382..0893fc2 100644
--- a/tight.c
+++ b/tight.c
@@ -24,8 +24,15 @@
* USA.
*/
-#include <stdio.h>
+//#include <stdio.h>
#include "rfb.h"
+
+#ifdef WIN32
+#define XMD_H
+#undef FAR
+#define NEEDFAR_POINTERS
+#endif
+
#include <jpeglib.h>
@@ -1433,7 +1440,7 @@ DetectSmoothImage (cl, fmt, w, h)
rfbPixelFormat *fmt;
int w, h;
{
- unsigned long avgError;
+ long avgError;
if ( cl->screen->rfbServerFormat.bitsPerPixel == 8 || fmt->bitsPerPixel == 8 ||
w < DETECT_MIN_WIDTH || h < DETECT_MIN_HEIGHT ) {