commit | ce8aef737c3a0d6efa035c6ef634ba21ab0b6e42 | [log] [tgz] |
---|---|---|
author | Thomas Martitz <kugel@rockbox.org> | Sat Jan 11 14:14:46 2014 +0100 |
committer | Thomas Martitz <kugel@rockbox.org> | Sat Jan 11 14:19:43 2014 +0100 |
tree | fd51f7fb7b14109aff58e1f84700f83e7ad74fbe | |
parent | 25e50ed8f1361ef3295aeb298a3edf2214f5b3b3 [diff] |
bmp loader: Fix loading of monochrome/greyscale BMPs with newer headers. The code expected the color table at offset 54 (14+size of BITMAPINFOHEADER), which was after the BITMAPINFOHEADER header. However, newer BITMAPINFOHEADER versions exist which have more fields before the color table. Fix this by explicitely seeking to the color table. Change-Id: If1dfc77e7485e5a9e0bc0e7f577152da9358bd71