ShowImage no longer uses the weird direct bitmap storage in the clipboard.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-06-12 17:55:52 +00:00
parent 3f0827a2d1
commit 70b0ca3910
+1 -3
View File
@@ -480,9 +480,7 @@ SudokuView::CopyToClipboard()
// first as bitmap as we need to archive to the message
if (SaveTo(mio, kExportAsBitmap) >= B_OK) {
mio.Seek(0LL, SEEK_SET);
// ShowImage wants this... nasty
clip->Unflatten(&mio);
// ArtPaint uses that
// ShowImage, ArtPaint & WonderBrush use that
clip->AddData("image/bitmap", B_MESSAGE_TYPE, mio.Buffer(), mio.BufferLength());
// Becasso uses that ?
clip->AddData("image/x-be-bitmap", B_MESSAGE_TYPE, mio.Buffer(), mio.BufferLength());