/[rdesktop]/sourceforge.net/trunk/rdesktop/rdp.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 375 by forsberg, Mon May 5 12:20:53 2003 UTC revision 376 by jsorg71, Mon May 19 21:36:33 2003 UTC
# Line 236  rdp_send_logon_info(uint32 flags, char * Line 236  rdp_send_logon_info(uint32 flags, char *
236                          rdp_out_unistr(s, directory, len_directory);                          rdp_out_unistr(s, directory, len_directory);
237                  } else {                  } else {
238                          out_uint16_le(s, 0);                          out_uint16_le(s, 0);
239                  }                  }
240                  out_uint16_le(s, 2);                  out_uint16_le(s, 2);
241                  out_uint16_le(s, len_ip+2); // Length of client ip                  out_uint16_le(s, len_ip+2); // Length of client ip
242                  rdp_out_unistr(s, "127.0.0.1", len_ip);                  rdp_out_unistr(s, "127.0.0.1", len_ip);
# Line 710  process_bitmap_updates(STREAM s) Line 710  process_bitmap_updates(STREAM s)
710                  if (!compress)                  if (!compress)
711                  {                  {
712                          int y;                          int y;
713                          bmpdata = xmalloc(width * height * Bpp);                          bmpdata = (uint8*)xmalloc(width * height * Bpp);
714                          for (y = 0; y < height; y++)                          for (y = 0; y < height; y++)
715                          {                          {
716                                  in_uint8a(s, &bmpdata[(height - y - 1) * (width * Bpp)],                                  in_uint8a(s, &bmpdata[(height - y - 1) * (width * Bpp)],
# Line 733  process_bitmap_updates(STREAM s) Line 733  process_bitmap_updates(STREAM s)
733                          in_uint8s(s, 4);        /* line_size, final_size */                          in_uint8s(s, 4);        /* line_size, final_size */
734                  }                  }
735                  in_uint8p(s, data, size);                  in_uint8p(s, data, size);
736                  bmpdata = xmalloc(width * height * Bpp);                  bmpdata = (uint8*)xmalloc(width * height * Bpp);
737                  if (bitmap_decompress(bmpdata, width, height, data, size, Bpp))                  if (bitmap_decompress(bmpdata, width, height, data, size, Bpp))
738                  {                  {
739                          ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata);                          ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata);
# Line 760  process_palette(STREAM s) Line 760  process_palette(STREAM s)
760          in_uint16_le(s, map.ncolours);          in_uint16_le(s, map.ncolours);
761          in_uint8s(s, 2);        /* pad */          in_uint8s(s, 2);        /* pad */
762    
763          map.colours = xmalloc(3 * map.ncolours);          map.colours = (COLOURENTRY*)xmalloc(3 * map.ncolours);
764    
765          DEBUG(("PALETTE(c=%d)\n", map.ncolours));          DEBUG(("PALETTE(c=%d)\n", map.ncolours));
766    

Legend:
Removed from v.375  
changed lines
  Added in v.376

  ViewVC Help
Powered by ViewVC 1.1.26