From ce0d6995f6a38db81391ae913cc11580ceca0951 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 31 Jul 2009 15:08:49 +0200 Subject: framebuffer: Add bmp command to show bmp files Signed-off-by: Sascha Hauer --- include/bmp_layout.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/bmp_layout.h') diff --git a/include/bmp_layout.h b/include/bmp_layout.h index d823de910f..63c5564830 100644 --- a/include/bmp_layout.h +++ b/include/bmp_layout.h @@ -27,17 +27,17 @@ #ifndef _BMP_H_ #define _BMP_H_ -typedef struct bmp_color_table_entry { +struct bmp_color_table_entry { __u8 blue; __u8 green; __u8 red; __u8 reserved; -} __attribute__ ((packed)) bmp_color_table_entry_t; +} __attribute__ ((packed)); /* When accessing these fields, remember that they are stored in little endian format, so use linux macros, e.g. le32_to_cpu(width) */ -typedef struct bmp_header { +struct bmp_header { /* Header */ char signature[2]; __u32 file_size; @@ -57,14 +57,14 @@ typedef struct bmp_header { __u32 colors_important; /* ColorTable */ -} __attribute__ ((packed)) bmp_header_t; +} __attribute__ ((packed)); -typedef struct bmp_image { - bmp_header_t header; +struct bmp_image { + struct bmp_header header; /* We use a zero sized array just as a placeholder for variable sized array */ - bmp_color_table_entry_t color_table[0]; -} bmp_image_t; + struct bmp_color_table_entry color_table[0]; +}; /* Data in the bmp_image is aligned to this length */ #define BMP_DATA_ALIGN 4 -- cgit v1.2.3