/[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 893 by stargo, Sat Apr 23 22:36:42 2005 UTC revision 1364 by jsorg71, Thu Jan 4 04:55:56 2007 UTC
# Line 379  process_desksave(STREAM s, DESKSAVE_ORDE Line 379  process_desksave(STREAM s, DESKSAVE_ORDE
379  static void  static void
380  process_memblt(STREAM s, MEMBLT_ORDER * os, uint32 present, BOOL delta)  process_memblt(STREAM s, MEMBLT_ORDER * os, uint32 present, BOOL delta)
381  {  {
382          HBITMAP bitmap;          RD_HBITMAP bitmap;
383    
384          if (present & 0x0001)          if (present & 0x0001)
385          {          {
# Line 425  process_memblt(STREAM s, MEMBLT_ORDER * Line 425  process_memblt(STREAM s, MEMBLT_ORDER *
425  static void  static void
426  process_triblt(STREAM s, TRIBLT_ORDER * os, uint32 present, BOOL delta)  process_triblt(STREAM s, TRIBLT_ORDER * os, uint32 present, BOOL delta)
427  {  {
428          HBITMAP bitmap;          RD_HBITMAP bitmap;
429    
430          if (present & 0x000001)          if (present & 0x000001)
431          {          {
# Line 486  process_polygon(STREAM s, POLYGON_ORDER Line 486  process_polygon(STREAM s, POLYGON_ORDER
486  {  {
487          int index, data, next;          int index, data, next;
488          uint8 flags = 0;          uint8 flags = 0;
489          POINT *points;          RD_POINT *points;
490    
491          if (present & 0x01)          if (present & 0x01)
492                  rdp_in_coord(s, &os->x, delta);                  rdp_in_coord(s, &os->x, delta);
# Line 528  process_polygon(STREAM s, POLYGON_ORDER Line 528  process_polygon(STREAM s, POLYGON_ORDER
528                  return;                  return;
529          }          }
530    
531          points = (POINT *) xmalloc((os->npoints + 1) * sizeof(POINT));          points = (RD_POINT *) xmalloc((os->npoints + 1) * sizeof(RD_POINT));
532          memset(points, 0, (os->npoints + 1) * sizeof(POINT));          memset(points, 0, (os->npoints + 1) * sizeof(RD_POINT));
533    
534          points[0].x = os->x;          points[0].x = os->x;
535          points[0].y = os->y;          points[0].y = os->y;
# Line 565  process_polygon2(STREAM s, POLYGON2_ORDE Line 565  process_polygon2(STREAM s, POLYGON2_ORDE
565  {  {
566          int index, data, next;          int index, data, next;
567          uint8 flags = 0;          uint8 flags = 0;
568          POINT *points;          RD_POINT *points;
569    
570          if (present & 0x0001)          if (present & 0x0001)
571                  rdp_in_coord(s, &os->x, delta);                  rdp_in_coord(s, &os->x, delta);
# Line 613  process_polygon2(STREAM s, POLYGON2_ORDE Line 613  process_polygon2(STREAM s, POLYGON2_ORDE
613                  return;                  return;
614          }          }
615    
616          points = (POINT *) xmalloc((os->npoints + 1) * sizeof(POINT));          points = (RD_POINT *) xmalloc((os->npoints + 1) * sizeof(RD_POINT));
617          memset(points, 0, (os->npoints + 1) * sizeof(POINT));          memset(points, 0, (os->npoints + 1) * sizeof(RD_POINT));
618    
619          points[0].x = os->x;          points[0].x = os->x;
620          points[0].y = os->y;          points[0].y = os->y;
# Line 651  process_polyline(STREAM s, POLYLINE_ORDE Line 651  process_polyline(STREAM s, POLYLINE_ORDE
651          int index, next, data;          int index, next, data;
652          uint8 flags = 0;          uint8 flags = 0;
653          PEN pen;          PEN pen;
654          POINT *points;          RD_POINT *points;
655    
656          if (present & 0x01)          if (present & 0x01)
657                  rdp_in_coord(s, &os->x, delta);                  rdp_in_coord(s, &os->x, delta);
# Line 690  process_polyline(STREAM s, POLYLINE_ORDE Line 690  process_polyline(STREAM s, POLYLINE_ORDE
690                  return;                  return;
691          }          }
692    
693          points = (POINT *) xmalloc((os->lines + 1) * sizeof(POINT));          points = (RD_POINT *) xmalloc((os->lines + 1) * sizeof(RD_POINT));
694          memset(points, 0, (os->lines + 1) * sizeof(POINT));          memset(points, 0, (os->lines + 1) * sizeof(RD_POINT));
695    
696          points[0].x = os->x;          points[0].x = os->x;
697          points[0].y = os->y;          points[0].y = os->y;
# Line 874  process_text2(STREAM s, TEXT2_ORDER * os Line 874  process_text2(STREAM s, TEXT2_ORDER * os
874  static void  static void
875  process_raw_bmpcache(STREAM s)  process_raw_bmpcache(STREAM s)
876  {  {
877          HBITMAP bitmap;          RD_HBITMAP bitmap;
878          uint16 cache_idx, bufsize;          uint16 cache_idx, bufsize;
879          uint8 cache_id, width, height, bpp, Bpp;          uint8 cache_id, width, height, bpp, Bpp;
880          uint8 *data, *inverted;          uint8 *data, *inverted;
# Line 907  process_raw_bmpcache(STREAM s) Line 907  process_raw_bmpcache(STREAM s)
907  static void  static void
908  process_bmpcache(STREAM s)  process_bmpcache(STREAM s)
909  {  {
910          HBITMAP bitmap;          RD_HBITMAP bitmap;
911          uint16 cache_idx, size;          uint16 cache_idx, size;
912          uint8 cache_id, width, height, bpp, Bpp;          uint8 cache_id, width, height, bpp, Bpp;
913          uint8 *data, *bmpdata;          uint8 *data, *bmpdata;
# Line 963  process_bmpcache(STREAM s) Line 963  process_bmpcache(STREAM s)
963  static void  static void
964  process_bmpcache2(STREAM s, uint16 flags, BOOL compressed)  process_bmpcache2(STREAM s, uint16 flags, BOOL compressed)
965  {  {
966          HBITMAP bitmap;          RD_HBITMAP bitmap;
967          int y;          int y;
968          uint8 cache_id, cache_idx_low, width, height, Bpp;          uint8 cache_id, cache_idx_low, width, height, Bpp;
969          uint16 cache_idx, bufsize;          uint16 cache_idx, bufsize;
# Line 1045  process_colcache(STREAM s) Line 1045  process_colcache(STREAM s)
1045  {  {
1046          COLOURENTRY *entry;          COLOURENTRY *entry;
1047          COLOURMAP map;          COLOURMAP map;
1048          HCOLOURMAP hmap;          RD_HCOLOURMAP hmap;
1049          uint8 cache_id;          uint8 cache_id;
1050          int i;          int i;
1051    
# Line 1077  process_colcache(STREAM s) Line 1077  process_colcache(STREAM s)
1077  static void  static void
1078  process_fontcache(STREAM s)  process_fontcache(STREAM s)
1079  {  {
1080          HGLYPH bitmap;          RD_HGLYPH bitmap;
1081          uint8 font, nglyphs;          uint8 font, nglyphs;
1082          uint16 character, offset, baseline, width, height;          uint16 character, offset, baseline, width, height;
1083          int i, datasize;          int i, datasize;

Legend:
Removed from v.893  
changed lines
  Added in v.1364

  ViewVC Help
Powered by ViewVC 1.1.26