Changeset 1632 for code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
- Timestamp:
- Jun 29, 2008, 5:37:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r1628 r1632 207 207 float tempAspect; 208 208 if (angle > 89.0 && angle < 91.0) 209 { 209 210 tempAspect = 1.0 / this->windowAspectRatio_; 211 rotState_ = Vertical; 212 } 210 213 else if (angle > 179 || angle < 1) 214 { 211 215 tempAspect = this->windowAspectRatio_; 216 rotState_ = Horizontal; 217 } 212 218 else 219 { 213 220 tempAspect = 1.0; 221 rotState_ = Inbetween; 222 } 214 223 215 224 // note: this is only an approximation that is mostly valid when the
Note: See TracChangeset
for help on using the changeset viewer.