From 33654c7ce7c5756ab501d06c862ec10848103c72 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Sat, 23 Aug 2008 17:32:25 -0800 Subject: [PATCH] Fix the mystery bug where the display disappears. That would happen when I get a mouse moved event with the middle button down before I got a middle button down event; orig.proj{Right,Up} were invalid. [git-p4: depot-paths = "//depot/solvespace/": change = 1873] --- graphicswin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphicswin.cpp b/graphicswin.cpp index ccfbb8a..af554c0 100644 --- a/graphicswin.cpp +++ b/graphicswin.cpp @@ -118,6 +118,11 @@ void GraphicsWindow::Init(void) { projRight = Vector::From(1, 0, 0); projUp = Vector::From(0, 1, 0); + // Make sure those are valid; could get a mouse move without a mouse + // down if someone depresses the button, then drags into our window. + orig.projRight = projRight; + orig.projUp = projUp; + // And with the last group active activeGroup = SS.group.elem[SS.group.n-1].h; SS.GetGroup(activeGroup)->Activate();