X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fapi.git;a=blobdiff_plain;f=bmp%2Fbmp.h;fp=bmp%2Fbmp.h;h=0741cd6c84c46069578ff8c3163979b5a5c34f7b;hp=f9216a88180fd088e214c6db95ef0181e02a080d;hb=b75390faa6d63ccc1a940bbe5db66141c8e0a1a0;hpb=3ec9064832fc11b712e2f040b03c9cc5ecfbfeec diff --git a/bmp/bmp.h b/bmp/bmp.h index f9216a8..0741cd6 100644 --- 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 {