*** icosave.c	Sat Apr  9 21:46:24 2005
--- icosave_fixed.c	Fri Feb 10 17:55:19 2006
***************
*** 295,301 ****
    offset = bit_num % line_width;
    bit_val = bit_val & 0x00000001;
  
!   data[line * width32 * 4 + offset/8] |= (bit_val << (7 - (bit_num % 8)));
  }
  
  
--- 295,301 ----
    offset = bit_num % line_width;
    bit_val = bit_val & 0x00000001;
  
!   data[line * width32 * 4 + offset/8] |= (bit_val << (7 - (offset % 8)));
  }
  
  
***************
*** 316,322 ****
    offset = nibble_num % line_width;
    nibble_val = nibble_val & 0x0000000F;
  
!   data[line * width8 * 4 + offset/2] |= (nibble_val << (4 * (1 - (nibble_num % 2))));
  }
  
  
--- 316,322 ----
    offset = nibble_num % line_width;
    nibble_val = nibble_val & 0x0000000F;
  
!   data[line * width8 * 4 + offset/2] |= (nibble_val << (4 * (1 - (offset % 2))));
  }
  
  
