ok, how about using correct linear algebra

This commit is contained in:
Cary Sandvig 2001-03-09 02:27:13 +00:00
parent 52d5db9c15
commit f9c10939b1
2 changed files with 4 additions and 4 deletions

View File

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

View File

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