Changeset 3192 for code/branches/pch/src/orxonox/overlays/OrxonoxOverlay.cc
- Timestamp:
- Jun 18, 2009, 10:00:15 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/overlays/OrxonoxOverlay.cc
r3110 r3192 215 215 if (angle < 0.0) 216 216 angle = -angle; 217 angle -= 180.0 * (int)(angle / 180.0);217 angle -= 180.0f * (int)(angle / 180.0); 218 218 219 219 // take the reverse if angle is about 90 degrees 220 220 float tempAspect; 221 if (angle > 89.0 && angle < 91.0)221 if (angle > 89.0f && angle < 91.0f) 222 222 { 223 223 tempAspect = 1.0 / this->windowAspectRatio_; … … 231 231 else 232 232 { 233 tempAspect = 1.0 ;233 tempAspect = 1.0f; 234 234 rotState_ = Inbetween; 235 235 } … … 238 238 // magnitude of the width is about the magnitude of the height. 239 239 // Correctly we would have to take the square root of width*height 240 this->sizeCorrection_.x = 2.0 / (tempAspect + 1.0);240 this->sizeCorrection_.x = 2.0f / (tempAspect + 1.0f); 241 241 this->sizeCorrection_.y = tempAspect * this->sizeCorrection_.x; 242 242 }
Note: See TracChangeset
for help on using the changeset viewer.