ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 8f1792ce9630ec165401378f0f0f638c903f9069
parent fc85587c7b1c4c236ace978d30fec93dea0d3b8e
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sat, 13 Jun 2015 21:50:42 +0200

Fixing the PCB loader to use logical AND as it should

Diffstat:
Msrc/ansilove.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/ansilove.c b/src/ansilove.c @@ -1272,7 +1272,7 @@ void alPcBoardLoader(char *input, char output[], char retinaout[], char font[], } // PCB sequence - if (current_character == 64 & next_character == 88) + if (current_character == 64 && next_character == 88) { // set graphics rendition color_background = input_file_buffer[loop+2]; @@ -1280,8 +1280,8 @@ void alPcBoardLoader(char *input, char output[], char retinaout[], char font[], loop+=3; } - else if (current_character == 64 & next_character == 67 & - input_file_buffer[loop+2] == 'L' & input_file_buffer[loop+3] == 'S') + else if (current_character == 64 && next_character == 67 && + input_file_buffer[loop+2] == 'L' && input_file_buffer[loop+3] == 'S') { // erase display position_x = 0; @@ -1292,8 +1292,8 @@ void alPcBoardLoader(char *input, char output[], char retinaout[], char font[], loop+=4; } - else if (current_character == 64 & next_character == 80 & input_file_buffer[loop+2] == 'O' - & input_file_buffer[loop+3] == 'S' & input_file_buffer[loop+4]== ':') + else if (current_character == 64 && next_character == 80 && input_file_buffer[loop+2] == 'O' + && input_file_buffer[loop+3] == 'S' && input_file_buffer[loop+4]== ':') { // cursor position if (input_file_buffer[loop+6]=='@')