Fixing white background on different B_CMAP8 icons. Fixes bug 268.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16660 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2006-03-08 20:03:22 +00:00
parent 26f8325935
commit d6bada84a3

View File

@ -1446,7 +1446,7 @@ Painter::_DrawBitmap(const agg::rendering_buffer& srcBuffer, color_space format,
// for example in the nn filter (hm), or in the
// scanline generator (better)
// maybe we can use an optimized version
BBitmap temp(actualBitmapRect, B_BITMAP_NO_SERVER_LINK, B_RGB32);
BBitmap temp(actualBitmapRect, B_BITMAP_NO_SERVER_LINK, B_RGBA32);
status_t err = temp.ImportBits(srcBuffer.buf(),
srcBuffer.height() * srcBuffer.stride(),
srcBuffer.stride(),