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
cursor "smears" sometimes when not using cursor encoding
really support pthreads.
- cursor seems to be undrawn wildly
- connection gone and then reconnect is a problem
in the works:
-------------

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

Loading…
Cancel
Save