diff options
author | dscho <dscho> | 2001-10-06 17:45:42 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-06 17:45:42 +0000 |
commit | 446f334cc1ee67b280e218ae58fef34d5b063cea (patch) | |
tree | f238279505d71a241b20154a43aee10b7acde3fa /example.c | |
parent | 018e90db5918a75ceaf3835be084e2387f31a47e (diff) | |
download | libtdevnc-446f334cc1ee67b280e218ae58fef34d5b063cea.tar.gz libtdevnc-446f334cc1ee67b280e218ae58fef34d5b063cea.zip |
WIN32 compatibility, removed kbdptr.c
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -21,11 +21,16 @@ * USA. */ +#ifdef WIN32 +#define sleep Sleep +#else #include <unistd.h> +#endif + #ifdef __IRIX__ #include <netdb.h> #endif -#define XK_MISCELLANY + #include "rfb.h" #include "keysym.h" @@ -121,7 +126,7 @@ void doptr(int buttonMask,int x,int y,rfbClientPtr cl) for(i=x1*bpp;i<x2*bpp;i++) for(j=y1;j<y2;j++) - cl->screen->frameBuffer[j*w+i]=0xff; + cl->screen->frameBuffer[j*w+i]=(char)0xff; rfbMarkRectAsModified(cl->screen,x1,y1,x2-1,y2-1); } @@ -157,8 +162,8 @@ void dokey(Bool down,KeySym key,rfbClientPtr cl) int x1=cd->oldx,y1=cd->oldy,x2,y2; if(cl->screen->cursorIsDrawn) rfbUndrawCursor(cl->screen); - cd->oldx+=rfbDrawChar(cl->screen,&radonFont,cd->oldx,cd->oldy,key,0xffffff); - rfbFontBBox(&radonFont,key,&x1,&y1,&x2,&y2); + cd->oldx+=rfbDrawChar(cl->screen,&radonFont,cd->oldx,cd->oldy,(char)key,0x00ffffff); + rfbFontBBox(&radonFont,(char)key,&x1,&y1,&x2,&y2); rfbMarkRectAsModified(cl->screen,x1,y1,x2-1,y2-1); } } |