VNC: Fix error in message header size calculation; Add logic to try copy with pixel format changes.

This commit is contained in:
Gregory Nutt
2016-04-20 13:10:09 -06:00
parent 9fd3db6293
commit 363169339b
3 changed files with 42 additions and 22 deletions
+2 -2
View File
@@ -547,8 +547,8 @@ struct rfb_rectangle_s
uint8_t data[1]; /* Pixel data, actual size varies */
};
#define SIZEOF_RFB_RECTANGES(d) \
(sizeof(struct rfb_framebufferupdate_s) + (d) - 1)
#define SIZEOF_RFB_RECTANGE_S(d) \
(sizeof(struct rfb_rectangle_s) + (d) - 1)
struct rfb_framebufferupdate_s
{