Changeset 97 for trunk


Ignore:
Timestamp:
06/03/13 09:08:42 (12 years ago)
Author:
shark
Message:
  • rectangle::clamp_to didn't return the bool value it was supposed to -- fixed.
  • fixed a logic error with rectangle::include_point.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/position.hh

    r65 r97  
    6868                bool clamp_to( const rectangle& r )
    6969                {
     70                        if (r.contains(*this)) return false;
    7071                        ul = glm::max( ul, r.ul );
    7172                        lr = glm::min( lr, r.lr );
    7273                        ul = glm::min( ul, lr );
     74                        return true;
    7375                }
    7476
     
    9092                {
    9193                        lr = glm::max( lr, p );
    92                         ul = glm::min( lr, p );
     94                        ul = glm::min( ul, p );
    9395                }
    9496
Note: See TracChangeset for help on using the changeset viewer.