/[rdesktop]/sourceforge.net/trunk/rdesktop/orders.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/orders.c

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

revision 732 by jsorg71, Wed Jun 30 17:59:40 2004 UTC revision 738 by astrand, Mon Jul 12 21:07:39 2004 UTC
# Line 772  process_bmpcache2(STREAM s, uint16 flags Line 772  process_bmpcache2(STREAM s, uint16 flags
772          in_uint8p(s, data, bufsize);          in_uint8p(s, data, bufsize);
773    
774          DEBUG(("BMPCACHE2(compr=%d,flags=%x,cx=%d,cy=%d,id=%d,idx=%d,Bpp=%d,bs=%d)\n",          DEBUG(("BMPCACHE2(compr=%d,flags=%x,cx=%d,cy=%d,id=%d,idx=%d,Bpp=%d,bs=%d)\n",
775                          compressed, flags, width, height, cache_id, cache_idx, Bpp, bufsize));                 compressed, flags, width, height, cache_id, cache_idx, Bpp, bufsize));
776    
777          bmpdata = (uint8 *) xmalloc(width * height * Bpp);          bmpdata = (uint8 *) xmalloc(width * height * Bpp);
778    
# Line 789  process_bmpcache2(STREAM s, uint16 flags Line 789  process_bmpcache2(STREAM s, uint16 flags
789          {          {
790                  for (y = 0; y < height; y++)                  for (y = 0; y < height; y++)
791                          memcpy(&bmpdata[(height - y - 1) * (width * Bpp)],                          memcpy(&bmpdata[(height - y - 1) * (width * Bpp)],
792                                          &data[y * (width * Bpp)], width * Bpp);                                 &data[y * (width * Bpp)], width * Bpp);
793          }          }
794    
795          bitmap = ui_create_bitmap(width, height, bmpdata);          bitmap = ui_create_bitmap(width, height, bmpdata);
# Line 799  process_bmpcache2(STREAM s, uint16 flags Line 799  process_bmpcache2(STREAM s, uint16 flags
799                  cache_put_bitmap(cache_id, cache_idx, bitmap, 0);                  cache_put_bitmap(cache_id, cache_idx, bitmap, 0);
800                  if (flags & PERSIST)                  if (flags & PERSIST)
801                          pstcache_put_bitmap(cache_id, cache_idx, bitmap_id, width, height,                          pstcache_put_bitmap(cache_id, cache_idx, bitmap_id, width, height,
802                                          width * height * Bpp, bmpdata);                                              width * height * Bpp, bmpdata);
803          }          }
804          else          else
805          {          {
# Line 885  process_secondary_order(STREAM s) Line 885  process_secondary_order(STREAM s)
885          uint8 *next_order;          uint8 *next_order;
886    
887          in_uint16_le(s, length);          in_uint16_le(s, length);
888          in_uint16_le(s, flags);         /* used by bmpcache2 */          in_uint16_le(s, flags); /* used by bmpcache2 */
889          in_uint8(s, type);          in_uint8(s, type);
890    
891          next_order = s->p + (sint16)length + 7;          next_order = s->p + (sint16) length + 7;
892    
893          switch (type)          switch (type)
894          {          {

Legend:
Removed from v.732  
changed lines
  Added in v.738

  ViewVC Help
Powered by ViewVC 1.1.26