summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_bitmap_compress.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-01-12 00:48:11 +0000
committerjsorg71 <jsorg71>2005-01-12 00:48:11 +0000
commit1d03bafb9e8ff4cef59b041235a986d6e4ae2fce (patch)
treef7ad121305b66baf59612fdd54753f29324d25e3 /xrdp/xrdp_bitmap_compress.c
parentff5f2d59b10ca11bc9f5382f94323325dd0045ed (diff)
downloadxrdp-proprietary-1d03bafb9e8ff4cef59b041235a986d6e4ae2fce.tar.gz
xrdp-proprietary-1d03bafb9e8ff4cef59b041235a986d6e4ae2fce.zip
added bitmap cache
Diffstat (limited to 'xrdp/xrdp_bitmap_compress.c')
-rw-r--r--xrdp/xrdp_bitmap_compress.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/xrdp/xrdp_bitmap_compress.c b/xrdp/xrdp_bitmap_compress.c
index be170a25..f17eb1d4 100644
--- a/xrdp/xrdp_bitmap_compress.c
+++ b/xrdp/xrdp_bitmap_compress.c
@@ -434,14 +434,14 @@
/*****************************************************************************/
int xrdp_bitmap_compress(char* in_data, int width, int height,
struct stream* s, int bpp, int byte_limit,
- int start_line, struct stream* temp_s)
+ int start_line, struct stream* temp_s,
+ int e)
{
char* line;
char* last_line;
char fom_mask[8192];
int lines_sent;
int pixel;
- int e;
int count;
int color_count;
int last_pixel;
@@ -462,11 +462,6 @@ int xrdp_bitmap_compress(char* in_data, int width, int height,
int temp; /* used in macros */
init_stream(temp_s, 0);
- e = width % 4;
- if (e != 0)
- {
- e = 4 - e;
- }
fom_mask_len = 0;
last_line = 0;
lines_sent = 0;