@@ -56,8 +56,7 @@ BitmapDrawingEngine::SetSize(int32 newWidth, int32 newHeight)
|
|||||||
fHWInterface = NULL;
|
fHWInterface = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete fBitmap;
|
fBitmap.Unset();
|
||||||
fBitmap = NULL;
|
|
||||||
|
|
||||||
if (newWidth <= 0 || newHeight <= 0)
|
if (newWidth <= 0 || newHeight <= 0)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ virtual ~BitmapDrawingEngine();
|
|||||||
private:
|
private:
|
||||||
color_space fColorSpace;
|
color_space fColorSpace;
|
||||||
BitmapHWInterface* fHWInterface;
|
BitmapHWInterface* fHWInterface;
|
||||||
UtilityBitmap* fBitmap;
|
BReference<UtilityBitmap> fBitmap;
|
||||||
BRegion fClipping;
|
BRegion fClipping;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user