From b75390faa6d63ccc1a940bbe5db66141c8e0a1a0 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 12 Oct 2005 09:34:00 +0000 Subject: [PATCH] fixed rgb values of pixmap struct --- bmp/bmp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 { -- 2.39.2