The fNeedToUpdate member was not initilized which caused the initial creation

of the image to be skipped. Magnify therefore showed a white frame as long as
the area around the cursor would not change. Fixes bug #598 (again). I wonder
why this didn't show up earlier though.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24156 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2008-02-27 21:02:21 +00:00
parent bb8610d004
commit f566ae596d

View File

@ -1060,21 +1060,21 @@ TMenu::AttachedToWindow()
TMagnify::TMagnify(BRect r, TWindow* parent)
: BView(r, "MagView", B_FOLLOW_NONE, B_WILL_DRAW | B_FRAME_EVENTS),
fNeedToUpdate(true),
fThread(-1),
fActive(true),
fImageBuf(NULL),
fImageView(NULL),
fLastLoc(-1, -1),
fSelection(-1),
fShowSelection(false),
fSelectionLoc(0, 0),
fShowCrossHair1(false),
fCrossHair1(-1, -1),
fShowCrossHair2(false),
fCrossHair2(-1, -1),
fParent(parent)
{
fLastLoc.Set(-1, -1);
fSelectionLoc.x = 0; fSelectionLoc.y = 0;
fActive = true;
fShowSelection = false;
fShowCrossHair1 = false;
fCrossHair1.x = -1; fCrossHair1.y = -1;
fShowCrossHair2 = false;
fCrossHair2.x = -1; fCrossHair2.y = -1;
fSelection = -1;
fImageBuf = NULL;
fImageView = NULL;
SetViewColor(B_TRANSPARENT_32_BIT);
}