bcm accelerated blit: avoid running out of clut data
authorpieterg <pieterg@users.sourceforge.net>
Wed, 12 Jan 2011 23:30:13 +0000 (00:30 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Thu, 13 Jan 2011 00:09:40 +0000 (01:09 +0100)
commit574863ec8d43671a8fd8f9adcdadb77a75d8ce24
tree5faba26fae211a275a143e53bd52e0351de74d13
parente66c53dd065aec5f9aca27ab45dc9e4f6fdc211e
bcm accelerated blit: avoid running out of clut data

We were passing a hardcoded number of 256 entries to the framebuffer,
while the source surface could have a smaller color lookup table.
For instance, most dvb subtitle graphics have a palette of only 16 colors.
This would cause frequent segfaults.
lib/gdi/accel.cpp