summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-30 08:40:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-30 08:40:21 +0000
commit5813fa90d31c74c59a180b1cbfba608a8a381fd1 (patch)
tree93b84906a8a40542990cc7972a4bf11a8c726b02 /apps/recorder
parent3c3bcf4e43f68619bcef45902bede0596e4955d6 (diff)
downloadrockbox-5813fa90d31c74c59a180b1cbfba608a8a381fd1.tar.gz
rockbox-5813fa90d31c74c59a180b1cbfba608a8a381fd1.zip
removed unused variables, removed static variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@816 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/bmp.c15
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
70static struct Fileheader fh;
71static unsigned char* bmp;
72static struct RGBQUAD palette[2]; /* two colors only */
73
74static unsigned int bitmap_width, bitmap_height;
75static unsigned char *bitmap;
76
77#ifdef STANDALONE 70#ifdef STANDALONE
78static id_str[256]; 71static id_str[256];
79static bool compress = false; 72static 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 {