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

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

revision 35 by matty, Fri Sep 14 13:51:38 2001 UTC revision 36 by matty, Sat Sep 15 14:30:46 2001 UTC
# Line 21  Line 21 
21  #include "rdesktop.h"  #include "rdesktop.h"
22    
23  #define CVAL(p)   (*(p++))  #define CVAL(p)   (*(p++))
 #define SVAL(p)   ((*((p++) + 1) << 8) | CVAL(p))  
24    
25  #define UNROLL8(exp) { exp exp exp exp exp exp exp exp }  #define UNROLL8(exp) { exp exp exp exp exp exp exp exp }
26    
# Line 75  bitmap_decompress(unsigned char *output, Line 74  bitmap_decompress(unsigned char *output,
74                          case 0xf:                          case 0xf:
75                                  opcode = code & 0xf;                                  opcode = code & 0xf;
76                                  if (opcode < 9)                                  if (opcode < 9)
77                                          count = SVAL(input);                                  {
78                                            count = CVAL(input);
79                                            count |= CVAL(input) << 8;
80                                    }
81                                  else                                  else
82                                    {
83                                          count = (opcode < 0xb) ? 8 : 1;                                          count = (opcode < 0xb) ? 8 : 1;
84                                    }
85                                  offset = 0;                                  offset = 0;
86                                  break;                                  break;
87    

Legend:
Removed from v.35  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26