From f9c10939b150760ca0fded386ba99c98df14f4ab Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Fri, 9 Mar 2001 02:27:13 +0000 Subject: [PATCH] ok, how about using correct linear algebra --- panda/src/gui/guiButton.cxx | 4 ++-- panda/src/gui/guiRollover.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/gui/guiButton.cxx b/panda/src/gui/guiButton.cxx index 2f45aa1d16..e8aa37932b 100644 --- a/panda/src/gui/guiButton.cxx +++ b/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.)); diff --git a/panda/src/gui/guiRollover.cxx b/panda/src/gui/guiRollover.cxx index 0f748c72d0..b70c7d0b2d 100644 --- a/panda/src/gui/guiRollover.cxx +++ b/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.));