version 1.2 | | version 1.3 |
---|
| | |
strcpy((char*)sl.buf, "pixmap "); | | strcpy((char*)sl.buf, "pixmap "); |
sl.len=strlen((char*)sl.buf); | | sl.len=strlen((char*)sl.buf); |
SockList_AddInt(&sl, face_num); | | SockList_AddInt(&sl, face_num); |
SockList_AddInt(&sl, faces[face_num].datalen); | | SockList_AddInt(&sl, faces[face_num].datalen[1]); |
memcpy(sl.buf+sl.len, faces[face_num].data, faces[face_num].datalen); | | memcpy(sl.buf+sl.len, faces[face_num].data[1], faces[face_num].datalen[1]); |
sl.len += faces[face_num].datalen; | | sl.len += faces[face_num].datalen[1]; |
/* LOG(llevDebug,"sending pixmap %d, len %d\n", face_num, faces[face_num].datalen);*/ | | /* LOG(llevDebug,"sending pixmap %d, len %d\n", face_num, faces[face_num].datalen);*/ |
Send_With_Handling(ns, &sl); | | Send_With_Handling(ns, &sl); |
} else if (ns->facemode == Send_Face_Bitmap) { | | } else if (ns->facemode == Send_Face_Bitmap) { |
| | |
SockList_AddInt(&sl, face_num); | | SockList_AddInt(&sl, face_num); |
SockList_AddChar(&sl, new_faces[face_num].fg); | | SockList_AddChar(&sl, new_faces[face_num].fg); |
SockList_AddChar(&sl, new_faces[face_num].bg); | | SockList_AddChar(&sl, new_faces[face_num].bg); |
memcpy(sl.buf+sl.len, faces[face_num].bitmapdata, 3*24); | | memcpy(sl.buf+sl.len, faces[face_num].data[0], faces[face_num].datalen[0]); |
sl.len += 3*24; | | memcpy(sl.buf+sl.len, faces[face_num].data[0], 3*24); |
| | sl.len += faces[face_num].datalen[0]; |
Send_With_Handling(ns, &sl); | | Send_With_Handling(ns, &sl); |
} else { | | } else { |
LOG(llevError,"Invalid face send mode on client_num (%d)\n", | | LOG(llevError,"Invalid face send mode on client_num (%d)\n", |