blame SaveToPNG for not handling other colorspaces

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15777 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-01-02 01:00:12 +00:00
parent e644f39677
commit 3155f89a0c

View File

@ -1115,8 +1115,7 @@ DrawingEngine::DumpToFile(const char *path)
RenderingBuffer* buffer = fGraphicsCard->DrawingBuffer();
if (buffer) {
BRect bounds(0.0, 0.0, buffer->Width() - 1, buffer->Height() - 1);
// TODO: Don't assume B_RGBA32!!
SaveToPNG(path, bounds, B_RGBA32,
SaveToPNG(path, bounds, buffer->ColorSpace(),
buffer->Bits(),
buffer->BitsLength(),
buffer->BytesPerRow());