Author: mmlr Date: 2010-12-24 02:40:36 +0100 (Fri, 24 Dec 2010) New Revision: 39931 Changeset: http://dev.haiku-os.org/changeset/39931 Modified: haiku/trunk/src/servers/app/View.cpp Log: * 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. Modified: haiku/trunk/src/servers/app/View.cpp =================================================================== --- haiku/trunk/src/servers/app/View.cpp 2010-12-24 01:13:28 UTC (rev 39930) +++ haiku/trunk/src/servers/app/View.cpp 2010-12-24 01:40:36 UTC (rev 39931) @@ -88,6 +88,8 @@ fViewColor((rgb_color){ 255, 255, 255, 255 }), fDrawState(new (nothrow) DrawState), fViewBitmap(NULL), + fBitmapResizingMode(0), + fBitmapOptions(0), fResizeMode(resizeMode), fFlags(flags), @@ -1076,9 +1078,9 @@ child->ParentResized(x, y, dirtyRegion); // 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, // so we can rebuild the clipping // TODO: when the implementation of Hide() and Show() is