Be nice and explain why we don't free fBasePtr. Implemented Area()

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8037 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2004-06-18 08:36:18 +00:00
parent 843f00a15e
commit e3a2e77198
+4 -3
View File
@@ -828,8 +828,9 @@ BBitmap::BBitmap(const BBitmap *source, bool acceptsViews,
*/
BBitmap::~BBitmap()
{
// if (fBasePtr)
// free(fBasePtr);
// TODO: don't free fBasePtr, as it's owned by the app_server
// should probably decrement an associated reference count, though,
// so the app_server knows this bitmap isn't used anymore
}
// unarchiving constructor
@@ -919,7 +920,7 @@ BBitmap::UnlockBits()
area_id
BBitmap::Area() const
{
return NOT_IMPLEMENTED;
return fArea;
}
// Bits