#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'
} __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 {