BBitmap now uses the correct (private) BWindow constructor. Partially implemented that constructor. Fixed another typo in BView, verified and removed some TODOs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12884 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2298,10 +2298,8 @@ BBitmap::InitObject(BRect bounds, color_space colorSpace, uint32 flags,
|
||||
// dependent on color space.
|
||||
|
||||
if (fInitError == B_OK) {
|
||||
if (flags & B_BITMAP_ACCEPTS_VIEWS) {
|
||||
// TODO: this probably needs to be a special kind of BWindow
|
||||
fWindow = new BWindow(Bounds(), "offscreen window", B_UNTYPED_WINDOW, 0);
|
||||
}
|
||||
if (flags & B_BITMAP_ACCEPTS_VIEWS)
|
||||
fWindow = new BWindow(Bounds(), fColorSpace, flags, fBytesPerRow);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user