From: hackbard Date: Wed, 12 Oct 2005 09:34:00 +0000 (+0000) Subject: fixed rgb values of pixmap struct X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b75390faa6d63ccc1a940bbe5db66141c8e0a1a0;p=my-code%2Fapi.git fixed rgb values of pixmap struct --- 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 {