Commit 64101231 authored by dscho's avatar dscho

nother try

parent 58031bcb
...@@ -4,6 +4,8 @@ immediate: ...@@ -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:
------------- -------------
......
...@@ -225,6 +225,9 @@ rfbCursorPtr rfbMakeXCursor(int width,int height,char* cursorString,char* maskSt ...@@ -225,6 +225,9 @@ rfbCursorPtr rfbMakeXCursor(int width,int height,char* cursorString,char* maskSt
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) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment