Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2008, 5:37:26 PM (16 years ago)
Author:
rgrieder
Message:

fixed a bug in OverlayText (no text was seen)
adjusted OverlayText in conjunction with aspect ratio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc

    r1628 r1632  
    207207            float tempAspect;
    208208            if (angle > 89.0 && angle < 91.0)
     209            {
    209210                tempAspect = 1.0 / this->windowAspectRatio_;
     211                rotState_ = Vertical;
     212            }
    210213            else if (angle > 179 || angle < 1)
     214            {
    211215                tempAspect = this->windowAspectRatio_;
     216                rotState_ = Horizontal;
     217            }
    212218            else
     219            {
    213220                tempAspect = 1.0;
     221                rotState_ = Inbetween;
     222            }
    214223
    215224            // note: this is only an approximation that is mostly valid when the
Note: See TracChangeset for help on using the changeset viewer.