* 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:
parent
3b1679f9c5
commit
95e95fee39
@ -88,6 +88,8 @@ View::View(IntRect frame, IntPoint scrollingOffset, const char* name,
|
||||
fViewColor((rgb_color){ 255, 255, 255, 255 }),
|
||||
fDrawState(new (nothrow) DrawState),
|
||||
fViewBitmap(NULL),
|
||||
fBitmapResizingMode(0),
|
||||
fBitmapOptions(0),
|
||||
|
||||
fResizeMode(resizeMode),
|
||||
fFlags(flags),
|
||||
@ -1076,8 +1078,8 @@ View::ResizeBy(int32 x, int32 y, BRegion* dirtyRegion)
|
||||
child->ParentResized(x, y, dirtyRegion);
|
||||
|
||||
// view bitmap
|
||||
|
||||
resize_frame(fBitmapDestination, fBitmapResizingMode, x, y);
|
||||
if (fViewBitmap != NULL)
|
||||
resize_frame(fBitmapDestination, fBitmapResizingMode, x, y);
|
||||
|
||||
// at this point, children are at their new locations,
|
||||
// so we can rebuild the clipping
|
||||
|
Loading…
Reference in New Issue
Block a user