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]
This commit is contained in:
Jonathan Westhues 2008-08-23 17:32:25 -08:00
parent 51ca96b821
commit 33654c7ce7

View File

@ -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();