projects
/
my-code
/
api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ec9064
)
fixed rgb values of pixmap struct
author
hackbard
<hackbard>
Wed, 12 Oct 2005 09:34:00 +0000
(09:34 +0000)
committer
hackbard
<hackbard>
Wed, 12 Oct 2005 09:34:00 +0000
(09:34 +0000)
bmp/bmp.h
patch
|
blob
|
history
diff --git
a/bmp/bmp.h
b/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 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'
#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 {
} __attribute__ ((packed)) t_bmp_info; /* 40 bytes */
typedef struct s_pixel {
- unsigned char r;
- unsigned char g;
unsigned char b;
unsigned char b;
+ unsigned char g;
+ unsigned char r;
} __attribute__ ((packed)) t_pixel;
typedef struct s_bmp {
} __attribute__ ((packed)) t_pixel;
typedef struct s_bmp {