fOffscreenBitmap
BBitmap* fOffscreenBitmap;
fOffscreenBitmap = new(std::nothrow) BBitmap(bounds, B_BITMAP_ACCEPTS_VIEWS,
if (fOffscreenBitmap == NULL) {
bitmap.ImportBits(fOffscreenBitmap, bounds.LeftTop(),
fOffscreenBitmap->AddChild(fOffscreen);
delete fOffscreenBitmap;
fOffscreenBitmap->Lock();
DrawBitmap(fOffscreenBitmap, updateRect, updateRect);
DrawBitmap(fOffscreenBitmap, fCursorFrame, fCursorFrame);
fOffscreenBitmap->Unlock();
fOffscreenBitmap->Lock();
BView *offscreen = new(std::nothrow) BView(fOffscreenBitmap->Bounds(),
fOffscreenBitmap->Unlock();
fOffscreenBitmap->AddChild(offscreen);
fOffscreenBitmap->Unlock();
fOffscreenBitmap->RemoveChild(state->view);
BRect bounds = fOffscreenBitmap->Bounds();
fOffscreenBitmap(NULL),
BBitmap * fOffscreenBitmap;
if (fOffscreenBitmap != NULL) {
fOffscreenBitmap = new BBitmap(bounds, B_RGB32, true, false);
fOffscreenBitmap->Lock();
fOffscreenBitmap->AddChild(offscreenView);
fOffscreenBitmap->Unlock();
delete fOffscreenBitmap;
fOffscreenBitmap = NULL;
status = data->AddBool("_use_off", fOffscreenBitmap != NULL);
if (fOffscreenBitmap != NULL)
bool useOffscreen = fOffscreenBitmap != NULL;
if (fOffscreenBitmap != NULL)
DrawBitmap(fOffscreenBitmap, B_ORIGIN);
if (fOffscreenBitmap->Lock()) {
BView* offscreenView = fOffscreenBitmap->ChildAt((int32)0);
fOffscreenBitmap->Unlock();
delete fOffscreenBitmap;