From 446f334cc1ee67b280e218ae58fef34d5b063cea Mon Sep 17 00:00:00 2001 From: dscho Date: Sat, 6 Oct 2001 17:45:42 +0000 Subject: WIN32 compatibility, removed kbdptr.c --- tight.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tight.c') diff --git a/tight.c b/tight.c index db0d382..0893fc2 100644 --- a/tight.c +++ b/tight.c @@ -24,8 +24,15 @@ * USA. */ -#include +//#include #include "rfb.h" + +#ifdef WIN32 +#define XMD_H +#undef FAR +#define NEEDFAR_POINTERS +#endif + #include @@ -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 ) { -- cgit v1.2.1