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:
parent
e644f39677
commit
3155f89a0c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user