Changes

Jump to navigation Jump to search
223 bytes added ,  20:01, 17 August 2010
m
Added brackets. Makes the code more readable.
Line 310: Line 310:     
if( useByte == 0 ) // Set the full line to the current paper colour
 
if( useByte == 0 ) // Set the full line to the current paper colour
 +
        {
 
memset( outB, paper, 256 );
 
memset( outB, paper, 256 );
 +
        }
 
else // Bytes in this line, read and deal with them
 
else // Bytes in this line, read and deal with them
 
{
 
{
Line 323: Line 325:  
{
 
{
 
if( ( data & 0x01 ) == 0x01 )
 
if( ( data & 0x01 ) == 0x01 )
 +
                                        {
 
outB[ x ] = invflag == 0 ? pen : paper;
 
outB[ x ] = invflag == 0 ? pen : paper;
 +
                                        }
 
else
 
else
 +
                                        {
 
outB[ x ] = invflag == 0 ? paper : pen;
 
outB[ x ] = invflag == 0 ? paper : pen;
 
+
                                        }
 
x ++;
 
x ++;
   Line 342: Line 347:     
if( x < 256 )
 
if( x < 256 )
 +
                {
 
memset( &outB[ x ], paper, 256 - x );
 
memset( &outB[ x ], paper, 256 - x );
 +
                }
 
}
 
}
  
1

edit

Navigation menu