summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-12-22 21:04:11 +0100
committerThomas Martitz <kugel@rockbox.org>2013-12-22 21:05:54 +0100
commit9f878b105dbb51e18adfc3023adc09bc6f61fad3 (patch)
treef56957f94245bdc16e81b22132aded9ffa185b75
parenta62bd9282e8cebe4e34c1930da04670695f8974b (diff)
downloadrockbox-9f878b1.tar.gz
rockbox-9f878b1.tar.bz2
rockbox-9f878b1.zip
Fix errors introduced by a62bd92.
Change-Id: I3f65ca5347d08e1b77196c73ccb3a0951f14c850
-rw-r--r--apps/recorder/bmp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index 58393bfc11..142bf5dff2 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -721,7 +721,7 @@ int read_bmp_fd(int fd,
bool found = false;
int i, j;
- /* (i == 0) is 15bit, (i == 1) is 16bit, (i == 2) is 32bit */
+ /* (i == 0) is 15bit, (i == 1) is 16bit, (i == {2,3}) is 32bit */
for (i = 0; i < ARRAY_SIZE(bitfields) && !found; i++) {
/* for 15bpp and higher numcolors has the number of color masks */
for (j = 0; j < numcolors; j++) {
@@ -734,10 +734,11 @@ int read_bmp_fd(int fd,
}
}
if (found) {
- if (i == 0) /* 15bit */
+ if (i == 1) /* 15bit */
depth = 15;
- else if (i == 3) /* 32bit, ABGR bitmap */
+ else if (i == 4) /* 32bit, ABGR bitmap */
order = ABGR;
+ break;
}
} /* else fall through */