pull/1/head
dscho 23 years ago
parent 58031bcb76
commit 641012310e

@ -4,6 +4,8 @@ immediate:
fix bug in http (java) client with big endian server: byte swapping is broken fix bug in http (java) client with big endian server: byte swapping is broken
cursor "smears" sometimes when not using cursor encoding cursor "smears" sometimes when not using cursor encoding
really support pthreads. really support pthreads.
- cursor seems to be undrawn wildly
- connection gone and then reconnect is a problem
in the works: in the works:
------------- -------------

@ -224,7 +224,10 @@ rfbCursorPtr rfbMakeXCursor(int width,int height,char* cursorString,char* maskSt
rfbCursorPtr cursor = (rfbCursorPtr)calloc(1,sizeof(rfbCursor)); rfbCursorPtr cursor = (rfbCursorPtr)calloc(1,sizeof(rfbCursor));
char* cp; char* cp;
unsigned char bit; unsigned char bit;
#ifdef HAVE_PTHREADS
pthread_mutex_init(&cursor->mutex, NULL);
#endif
cursor->width=width; cursor->width=width;
cursor->height=height; cursor->height=height;
//cursor->backRed=cursor->backGreen=cursor->backBlue=0xffff; //cursor->backRed=cursor->backGreen=cursor->backBlue=0xffff;
@ -272,6 +275,9 @@ char* rfbMakeMaskForXCursor(int width,int height,char* source)
void rfbFreeCursor(rfbCursorPtr cursor) void rfbFreeCursor(rfbCursorPtr cursor)
{ {
if(cursor) { if(cursor) {
#ifdef HAVE_PTHREADS
pthread_mutex_destroy(&cursor->mutex);
#endif
free(cursor->source); free(cursor->source);
free(cursor->mask); free(cursor->mask);
free(cursor); free(cursor);

Loading…
Cancel
Save