fixed rgb values of pixmap struct
authorhackbard <hackbard>
Wed, 12 Oct 2005 09:34:00 +0000 (09:34 +0000)
committerhackbard <hackbard>
Wed, 12 Oct 2005 09:34:00 +0000 (09:34 +0000)
bmp/bmp.h

index f9216a8..0741cd6 100644 (file)
--- a/bmp/bmp.h
+++ b/bmp/bmp.h
@@ -25,7 +25,7 @@
 #define B_E_READ_DATA -8
 #define B_E_WRITE_DATA -9
 #define B_E_GEOMETRY -10
-#define MAX_CHARS_FILE 32
+#define MAX_CHARS_FILE 128
 #define BMP_H_SIZE 14
 #define BMP_I_SIZE 40
 #define GRAB 'g'
@@ -54,9 +54,9 @@ typedef struct s_bmp_info {
 } __attribute__ ((packed)) t_bmp_info; /* 40 bytes */
 
 typedef struct s_pixel {
-  unsigned char r;
-  unsigned char g;
   unsigned char b;
+  unsigned char g;
+  unsigned char r;
 } __attribute__ ((packed)) t_pixel;
 
 typedef struct s_bmp {