From 674fc76649424fc7455aa97699b4d4586cf62cbf Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 17 Jan 2018 17:31:32 +0100 Subject: [PATCH] Fix minor issues --- src/fileformats.c | 18 ++++++++++++------ src/loadsave.c | 4 ++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/fileformats.c b/src/fileformats.c index e07bc5f7..fbe1a718 100644 --- a/src/fileformats.c +++ b/src/fileformats.c @@ -1435,7 +1435,7 @@ static byte Bitmap_mask(dword pixel, dword mask) return result << (8-bits_found); } -void Load_BMP_Palette(T_IO_Context * context, FILE * file, unsigned int nb_colors, int is_rgb24) +static void Load_BMP_Palette(T_IO_Context * context, FILE * file, unsigned int nb_colors, int is_rgb24) { byte local_palette[256*4]; // R,G,B,0 or RGB unsigned int i, j; @@ -1460,7 +1460,7 @@ void Load_BMP_Palette(T_IO_Context * context, FILE * file, unsigned int nb_color } } -void Load_BMP_Pixels(T_IO_Context * context, FILE * file, unsigned int compression, unsigned int nbbits, int top_down, const dword * mask) +static void Load_BMP_Pixels(T_IO_Context * context, FILE * file, unsigned int compression, unsigned int nbbits, int top_down, const dword * mask) { unsigned int row_size; unsigned int index; @@ -1470,7 +1470,6 @@ void Load_BMP_Pixels(T_IO_Context * context, FILE * file, unsigned int compressi byte value; byte a,b,c=0; - printf("Load_BMP_Pixels compression=%d nbbits=%d top_down=%d\n", compression, nbbits, top_down); switch (compression) { case 0 : // Pas de compression @@ -1725,8 +1724,14 @@ void Load_BMP(T_IO_Context * context) else nb_colors=1<