* CID 10247: Initialize those two members. Didn't do any harm since they depend
on a set view bitmap and are set when setting one. * We can safe that resize_frame() call in case no view bitmap is set. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39931 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -88,6 +88,8 @@ View::View(IntRect frame, IntPoint scrollingOffset, const char* name,
|
|||||||
fViewColor((rgb_color){ 255, 255, 255, 255 }),
|
fViewColor((rgb_color){ 255, 255, 255, 255 }),
|
||||||
fDrawState(new (nothrow) DrawState),
|
fDrawState(new (nothrow) DrawState),
|
||||||
fViewBitmap(NULL),
|
fViewBitmap(NULL),
|
||||||
|
fBitmapResizingMode(0),
|
||||||
|
fBitmapOptions(0),
|
||||||
|
|
||||||
fResizeMode(resizeMode),
|
fResizeMode(resizeMode),
|
||||||
fFlags(flags),
|
fFlags(flags),
|
||||||
@@ -1076,7 +1078,7 @@ View::ResizeBy(int32 x, int32 y, BRegion* dirtyRegion)
|
|||||||
child->ParentResized(x, y, dirtyRegion);
|
child->ParentResized(x, y, dirtyRegion);
|
||||||
|
|
||||||
// view bitmap
|
// view bitmap
|
||||||
|
if (fViewBitmap != NULL)
|
||||||
resize_frame(fBitmapDestination, fBitmapResizingMode, x, y);
|
resize_frame(fBitmapDestination, fBitmapResizingMode, x, y);
|
||||||
|
|
||||||
// at this point, children are at their new locations,
|
// at this point, children are at their new locations,
|
||||||
|
|||||||
Reference in New Issue
Block a user