/[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 9 by matty, Tue Jul 25 12:34:29 2000 UTC revision 10 by matty, Tue Aug 15 10:23:24 2000 UTC
# Line 18  Line 18 
18     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */  */
20    
21  #include "includes.h"  #include "rdesktop.h"
22    
23  #define CVAL(p)   (*(p++))  #define CVAL(p)   (*(p++))
24  #define SVAL(p)   ((*((p++) + 1) << 8) | CVAL(p))  #define SVAL(p)   ((*((p++) + 1) << 8) | CVAL(p))
# Line 30  BOOL bitmap_decompress(unsigned char *ou Line 30  BOOL bitmap_decompress(unsigned char *ou
30                         unsigned char *input, int size)                         unsigned char *input, int size)
31  {  {
32          unsigned char *end = input + size;          unsigned char *end = input + size;
33          unsigned char *prevline, *line = NULL;          unsigned char *prevline = NULL, *line = NULL;
34          int opcode, count, offset, isfillormix, x = width;          int opcode, count, offset, isfillormix, x = width;
35          int lastopcode = -1, insertmix = False;          int lastopcode = -1, insertmix = False;
36          uint8 code, colour1, colour2, mask, mixmask;          uint8 code, colour1 = 0, colour2 = 0;
37          uint8 mix = 0xff;          uint8 mixmask, mask = 0, mix = 0xff;
38    
39          while (input < end)          while (input < end)
40          {          {

Legend:
Removed from v.9  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26