/[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 283 by jsorg71, Tue Dec 10 17:24:27 2002 UTC revision 309 by jsorg71, Tue Feb 4 05:32:13 2003 UTC
# Line 579  process_bitmap_updates(STREAM s) Line 579  process_bitmap_updates(STREAM s)
579                  if (!compress)                  if (!compress)
580                  {                  {
581                          int y;                          int y;
582                          bmpdata = xmalloc(width * height);                          bmpdata = xmalloc(width * height * (bpp / 8));
583                          for (y = 0; y < height; y++)                          for (y = 0; y < height; y++)
584                          {                          {
585                                  in_uint8a(s, &bmpdata[(height - y - 1) * width], width);                                  in_uint8a(s, &bmpdata[(height - y - 1) * (width * (bpp / 8))], width * (bpp / 8));
586                          }                          }
587                          ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata);                          ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata);
588                          xfree(bmpdata);                          xfree(bmpdata);
# Line 593  process_bitmap_updates(STREAM s) Line 593  process_bitmap_updates(STREAM s)
593                  in_uint16_le(s, size);                  in_uint16_le(s, size);
594                  in_uint8s(s, 4);        /* line_size, final_size */                  in_uint8s(s, 4);        /* line_size, final_size */
595                  in_uint8p(s, data, size);                  in_uint8p(s, data, size);
596                    bmpdata = xmalloc(width * height * (bpp / 8));
597                  bmpdata = xmalloc(width * height);                  if (bitmap_decompress(bmpdata, width, height, data, size, bpp))
                 if (bitmap_decompress(bmpdata, width, height, data, size))  
598                  {                  {
599                          ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata);                          ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata);
600                  }                  }
   
601                  xfree(bmpdata);                  xfree(bmpdata);
602          }          }
603  }  }

Legend:
Removed from v.283  
changed lines
  Added in v.309

  ViewVC Help
Powered by ViewVC 1.1.26