From f566ae596d50bb9219e5fe1c3bc5d052b967ad9c Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Wed, 27 Feb 2008 21:02:21 +0000 Subject: [PATCH] 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 --- src/apps/magnify/Magnify.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/apps/magnify/Magnify.cpp b/src/apps/magnify/Magnify.cpp index 186e2746db..74e82ba247 100644 --- a/src/apps/magnify/Magnify.cpp +++ b/src/apps/magnify/Magnify.cpp @@ -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); }