git » fp-git.git » commit ff51060

Tammo jan patch applied

author ecalot
2006-08-22 01:46:17 UTC
committer ecalot
2006-08-22 01:46:17 UTC
parent 34c86e0fb6de6d96f7d6b374a1fb5c63c99d1b38

Tammo jan patch applied

PR/src/lib/formats/bmp.c +2 -1

diff --git a/PR/src/lib/formats/bmp.c b/PR/src/lib/formats/bmp.c
index a66d02b..550fffa 100644
--- a/PR/src/lib/formats/bmp.c
+++ b/PR/src/lib/formats/bmp.c
@@ -43,7 +43,7 @@ bmp.c: Princed Resources : BMP file support
 #include <stdlib.h>
 #include <string.h>
 
-int mWriteBmp(const char* file,const unsigned char* data, int w, int h, int bits, int colors, const tColor* colorArray, int lineWidth, int optionflag, const char* backupExtension) {
+int mWriteBmp(const char* file,const unsigned char* data, int w, int h, int b, int colors, const tColor* colorArray, int lineWidth, int optionflag, const char* backupExtension) {
 
 	/* declare variables */
 	int a;
@@ -54,6 +54,7 @@ int mWriteBmp(const char* file,const unsigned char* data, int w, int h, int bits
 	unsigned long int headerSize;
 	unsigned long int height=h;
 	unsigned long int offset;
+	unsigned short int bits=b;
 	unsigned char color;
 	unsigned long int width=w;
 	const unsigned long int zero=0;