summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-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,
721 bool found = false; 721 bool found = false;
722 int i, j; 722 int i, j;
723 723
724 /* (i == 0) is 15bit, (i == 1) is 16bit, (i == 2) is 32bit */ 724 /* (i == 0) is 15bit, (i == 1) is 16bit, (i == {2,3}) is 32bit */
725 for (i = 0; i < ARRAY_SIZE(bitfields) && !found; i++) { 725 for (i = 0; i < ARRAY_SIZE(bitfields) && !found; i++) {
726 /* for 15bpp and higher numcolors has the number of color masks */ 726 /* for 15bpp and higher numcolors has the number of color masks */
727 for (j = 0; j < numcolors; j++) { 727 for (j = 0; j < numcolors; j++) {
@@ -734,10 +734,11 @@ int read_bmp_fd(int fd,
734 } 734 }
735 } 735 }
736 if (found) { 736 if (found) {
737 if (i == 0) /* 15bit */ 737 if (i == 1) /* 15bit */
738 depth = 15; 738 depth = 15;
739 else if (i == 3) /* 32bit, ABGR bitmap */ 739 else if (i == 4) /* 32bit, ABGR bitmap */
740 order = ABGR; 740 order = ABGR;
741 break;
741 } 742 }
742 } /* else fall through */ 743 } /* else fall through */
743 744