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:
@@ -828,8 +828,9 @@ BBitmap::BBitmap(const BBitmap *source, bool acceptsViews,
|
|||||||
*/
|
*/
|
||||||
BBitmap::~BBitmap()
|
BBitmap::~BBitmap()
|
||||||
{
|
{
|
||||||
// if (fBasePtr)
|
// TODO: don't free fBasePtr, as it's owned by the app_server
|
||||||
// free(fBasePtr);
|
// should probably decrement an associated reference count, though,
|
||||||
|
// so the app_server knows this bitmap isn't used anymore
|
||||||
}
|
}
|
||||||
|
|
||||||
// unarchiving constructor
|
// unarchiving constructor
|
||||||
@@ -919,7 +920,7 @@ BBitmap::UnlockBits()
|
|||||||
area_id
|
area_id
|
||||||
BBitmap::Area() const
|
BBitmap::Area() const
|
||||||
{
|
{
|
||||||
return NOT_IMPLEMENTED;
|
return fArea;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bits
|
// Bits
|
||||||
|
|||||||
Reference in New Issue
Block a user