A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

FS#12764 - bdf2bmp fails to compile

Change-Id: I8e5ea31f0b529c0160ce6bdaa21a7d3dfe6c391d

authored by

Jonas Häggqvist and committed by
Bertrik Sikken
3d35f143 7a7d7a2f

+3 -3
+3 -3
tools/bdf2bmp.c
··· 97 void dwrite(const void *ptrP, int n, FILE *outP); 98 void writeBmpFile(unsigned char *bitmapP, int spacing, int colchar, FILE *bmpP); 99 void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct boundingbox glyph, int dw); 100 - int getline(char* lineP, int max, FILE* inputP); 101 unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP); 102 void printhelp(void); 103 int main(int argc, char *argv[]); ··· 454 /* 455 * read oneline from textfile 456 */ 457 - int getline(char* lineP, int max, FILE* inputP){ 458 if (fgets(lineP, max, inputP) == NULL) 459 return 0; 460 else ··· 479 static int bdfflag = OFF; /* the given bdf-file is valid or not */ 480 481 while(1){ 482 - length = getline(sP, LINE_CHARMAX, readP); 483 if((bdfflag == OFF) && (length == 0)){ 484 /* given input-file is not a bdf-file */ 485 printf("error: input-file is not a bdf file\n");
··· 97 void dwrite(const void *ptrP, int n, FILE *outP); 98 void writeBmpFile(unsigned char *bitmapP, int spacing, int colchar, FILE *bmpP); 99 void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct boundingbox glyph, int dw); 100 + int getfontline(char* lineP, int max, FILE* inputP); 101 unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP); 102 void printhelp(void); 103 int main(int argc, char *argv[]); ··· 454 /* 455 * read oneline from textfile 456 */ 457 + int getfontline(char* lineP, int max, FILE* inputP){ 458 if (fgets(lineP, max, inputP) == NULL) 459 return 0; 460 else ··· 479 static int bdfflag = OFF; /* the given bdf-file is valid or not */ 480 481 while(1){ 482 + length = getfontline(sP, LINE_CHARMAX, readP); 483 if((bdfflag == OFF) && (length == 0)){ 484 /* given input-file is not a bdf-file */ 485 printf("error: input-file is not a bdf file\n");