diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/bmp.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index cd49fd02a4..d02e9d4b15 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -67,13 +67,6 @@ struct RGBQUAD | |||
67 | unsigned char rgbReserved; | 67 | unsigned char rgbReserved; |
68 | } STRUCT_PACKED; | 68 | } STRUCT_PACKED; |
69 | 69 | ||
70 | static struct Fileheader fh; | ||
71 | static unsigned char* bmp; | ||
72 | static struct RGBQUAD palette[2]; /* two colors only */ | ||
73 | |||
74 | static unsigned int bitmap_width, bitmap_height; | ||
75 | static unsigned char *bitmap; | ||
76 | |||
77 | #ifdef STANDALONE | 70 | #ifdef STANDALONE |
78 | static id_str[256]; | 71 | static id_str[256]; |
79 | static bool compress = false; | 72 | static bool compress = false; |
@@ -110,15 +103,19 @@ int read_bmp_file(char* filename, | |||
110 | int *get_height, /* in pixels */ | 103 | int *get_height, /* in pixels */ |
111 | char *bitmap) | 104 | char *bitmap) |
112 | { | 105 | { |
106 | struct Fileheader fh; | ||
107 | struct RGBQUAD palette[2]; /* two colors only */ | ||
108 | |||
109 | unsigned int bitmap_width, bitmap_height; | ||
110 | |||
113 | long PaddedWidth; | 111 | long PaddedWidth; |
114 | int background; | 112 | int background; |
115 | int fd = open(filename, O_RDONLY); | 113 | int fd = open(filename, O_RDONLY); |
116 | long size; | 114 | long size; |
117 | unsigned int row, col, byte, bit; | 115 | unsigned int row, col; |
118 | int l; | 116 | int l; |
119 | unsigned char *bmp; | 117 | unsigned char *bmp; |
120 | int width; | 118 | int width; |
121 | int height; | ||
122 | 119 | ||
123 | if(fd == -1) | 120 | if(fd == -1) |
124 | { | 121 | { |