summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-12-15 14:47:37 -0800
committerJay Sorg <jay.sorg@gmail.com>2016-12-15 14:47:37 -0800
commit81e72fc99c25132e6ed868a17def3823d8918ed4 (patch)
tree4f90b927fed7a813660c5f7dc4abbcd5bc066b4e
parent519359a8230df9a72e83ca53cd271c024004110a (diff)
downloadxrdp-proprietary-81e72fc99c25132e6ed868a17def3823d8918ed4.tar.gz
xrdp-proprietary-81e72fc99c25132e6ed868a17def3823d8918ed4.zip
code cleanup, add some comments
-rw-r--r--libxrdp/libxrdp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c
index b03db073..dbffcd58 100644
--- a/libxrdp/libxrdp.c
+++ b/libxrdp/libxrdp.c
@@ -439,7 +439,7 @@ libxrdp_send_bitmap(struct xrdp_session *session, int width, int height,
while (i > 0)
{
- LLOGLN(10, ("libxrdp_send_bitmap: i %d", i));
+ LLOGLN(10, ("libxrdp_send_bitmap: i %d", i));
total_bufsize = 0;
num_updates = 0;
@@ -506,7 +506,7 @@ libxrdp_send_bitmap(struct xrdp_session *session, int width, int height,
out_uint16_le(s, bufsize); /* compressed size */
j = (width + e) * Bpp;
j = j * lines_sending;
- total_bufsize += 18;
+ total_bufsize += 18; /* bytes since pop layer */
}
else
{
@@ -518,7 +518,7 @@ libxrdp_send_bitmap(struct xrdp_session *session, int width, int height,
out_uint16_le(s, j); /* line size */
j = j * lines_sending;
out_uint16_le(s, j); /* final size */
- total_bufsize += 26;
+ total_bufsize += 26; /* bytes since pop layer */
}
LLOGLN(10, ("libxrdp_send_bitmap: decompressed pixels %d "
@@ -571,7 +571,7 @@ libxrdp_send_bitmap(struct xrdp_session *session, int width, int height,
while (i < total_lines)
{
- lines_sending = (MAX_BITMAP_BUF_SIZE - 100) / (line_pad_bytes);
+ lines_sending = (MAX_BITMAP_BUF_SIZE - 100) / line_pad_bytes;
if (i + lines_sending > total_lines)
{
@@ -584,7 +584,7 @@ libxrdp_send_bitmap(struct xrdp_session *session, int width, int height,
break;
}
- p = p + server_line_bytes * lines_sending;
+ p += server_line_bytes * lines_sending;
xrdp_rdp_init_data((struct xrdp_rdp *)session->rdp, s);
out_uint16_le(s, RDP_UPDATE_BITMAP);
out_uint16_le(s, 1); /* num updates */