Document the internal alpha channel format better, and fixes for 32bit alpha bitmaps.
commit312b2a2de7a35f8c4b0dc355b7b291085a9a5ea4
authorThomas Martitz <kugel@rockbox.org>
Fri, 11 Nov 2011 19:05:11 +0000 (11 19:05 +0000)
committerThomas Martitz <kugel@rockbox.org>
Fri, 11 Nov 2011 19:05:11 +0000 (11 19:05 +0000)
tree922fc139712760cd89c0caa7c3724b5a5020765c
parent158e14a8c696b29ec7fa21da5b1a801c31c473e9
Document the internal alpha channel format better, and fixes for 32bit alpha bitmaps.

For images, rows need to be even (this is not true for anti-aliased font files).
Fix stride and size calculation. This makes images that have odd pixel rows display properly and fixes buffer overflows.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30966 a1c6a512-1295-4272-9138-f99709370657
apps/recorder/bmp.c
apps/recorder/resize.c
firmware/drivers/lcd-16bit-common.c