diff options
author | dscho <dscho> | 2003-07-30 09:42:36 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-07-30 09:42:36 +0000 |
commit | eeb2061dfb03ea11ba028b33037fa0805d22e6a4 (patch) | |
tree | dce009b7b0b68b8660aa01ae543883a0e36bf287 /rre.c | |
parent | 964aa1628f2cc4fac17c22dc89fc2439bd87b00e (diff) | |
download | libtdevnc-eeb2061dfb03ea11ba028b33037fa0805d22e6a4.tar.gz libtdevnc-eeb2061dfb03ea11ba028b33037fa0805d22e6a4.zip |
API change: Bool, KeySym, Pixel get prefix "rfb"; constants in rfbconfig.h get prefix "LIBVNCSERVER_"
Diffstat (limited to 'rre.c')
-rw-r--r-- | rre.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -26,7 +26,7 @@ * USA. */ -#include "rfb.h" +#include <rfb/rfb.h> /* * rreBeforeBuf contains pixel data in the client's format. @@ -52,7 +52,7 @@ static uint32_t getBgColour(char *data, int size, int bpp); * rfbSendRectEncodingRRE - send a given rectangle using RRE encoding. */ -Bool +rfbBool rfbSendRectEncodingRRE(cl, x, y, w, h) rfbClientPtr cl; int x, y, w, h; @@ -100,7 +100,7 @@ rfbSendRectEncodingRRE(cl, x, y, w, h) break; default: rfbLog("getBgColour: bpp %d?\n",cl->format.bitsPerPixel); - exit(1); + return FALSE; } if (nSubrects < 0) { @@ -296,7 +296,7 @@ getBgColour(data,size,bpp) return ((uint32_t *)data)[0]; } else { rfbLog("getBgColour: bpp %d?\n",bpp); - exit(1); + return 0; } } @@ -308,7 +308,7 @@ getBgColour(data,size,bpp) k = (int)(((uint8_t *)data)[j]); if (k >= NUMCLRS) { rfbLog("getBgColour: unusual colour = %d\n", k); - exit(1); + return 0; } counts[k] += 1; if (counts[k] > maxcount) { |