/[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 18 by matty, Thu Oct 5 15:24:09 2000 UTC revision 19 by matty, Sun Oct 8 01:59:25 2000 UTC
# Line 32  BOOL bitmap_decompress(unsigned char *ou Line 32  BOOL bitmap_decompress(unsigned char *ou
32          unsigned char *end = input + size;          unsigned char *end = input + size;
33          unsigned char *prevline = NULL, *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, bicolour = False;
36          uint8 code, colour1 = 0, colour2 = 0;          uint8 code, colour1 = 0, colour2 = 0;
37          uint8 mixmask, mask = 0, mix = 0xff;          uint8 mixmask, mask = 0, mix = 0xff;
38    
# Line 178  BOOL bitmap_decompress(unsigned char *ou Line 178  BOOL bitmap_decompress(unsigned char *ou
178                                          break;                                          break;
179    
180                                  case 8: /* Bicolour */                                  case 8: /* Bicolour */
181                                          REPEAT(line[x] = colour1; line[++x] = colour2)                                          REPEAT(
182                                                    if (bicolour)
183                                                    {
184                                                            line[x] = colour2;
185                                                            bicolour = False;
186                                                    }
187                                                    else
188                                                    {
189                                                            line[x] = colour1;
190                                                            bicolour = True;
191                                                            count++;
192                                                    }
193                                            )
194                                          break;                                          break;
195    
196                                  case 13: /* White */                                  case 13: /* White */

Legend:
Removed from v.18  
changed lines
  Added in v.19

  ViewVC Help
Powered by ViewVC 1.1.26