Browse Source

ok, how about using correct linear algebra

Cary Sandvig 25 years ago
parent
commit
f9c10939b1
2 changed files with 4 additions and 4 deletions
  1. 2 2
      panda/src/gui/guiButton.cxx
  2. 2 2
      panda/src/gui/guiRollover.cxx

+ 2 - 2
panda/src/gui/guiButton.cxx

@@ -289,8 +289,8 @@ void GuiButton::adjust_region(void) {
     // adjust for graph transform
     LMatrix4f m;
     this->get_graph_mat(m);
-    LVector3f ul = LVector3f::rfu(_left, 0., _top);
-    LVector3f lr = LVector3f::rfu(_right, 0., _bottom);
+    LPoint3f ul = LVector3f::rfu(_left, 0., _top);
+    LPoint3f lr = LVector3f::rfu(_right, 0., _bottom);
     ul = m * ul;
     lr = m * lr;
     _left = ul.dot(LVector3f::rfu(1., 0., 0.));

+ 2 - 2
panda/src/gui/guiRollover.cxx

@@ -74,8 +74,8 @@ void GuiRollover::adjust_region(void) {
     // adjust for graph transform
     LMatrix4f m;
     this->get_graph_mat(m);
-    LVector3f ul = LVector3f::rfu(_left, 0., _top);
-    LVector3f lr = LVector3f::rfu(_right, 0., _bottom);
+    LPoint3f ul = LVector3f::rfu(_left, 0., _top);
+    LPoint3f lr = LVector3f::rfu(_right, 0., _bottom);
     ul = m * ul;
     lr = m * lr;
     _left = ul.dot(LVector3f::rfu(1., 0., 0.));