Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2008, 11:47:09 PM (16 years ago)
Author:
rgrieder
Message:
  • moved colours of the SpeedBar to XML file
  • enabled render window updating in inactive mode (under windows the render window didn't show anything if inactive)
  • added row/column to ticpp error description (there are a lot more to do this, may modify the macro..)
File:
1 edited

Legend:

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

    r1617 r1618  
    111111                this->overlay_->hide();
    112112
     113            this->sizeCorrectionChanged();
    113114            this->sizeChanged();
    114115            this->positionChanged();
     
    160161        {
    161162            float angle = this->angle_.valueDegrees();
     163            if (angle < 0.0)
     164                angle = -angle;
     165            angle -= 180.0 * (int)(angle / 180.0);
     166
    162167            float tempAspect;
    163             if (angle > 89.0 && angle < 91.0 || angle > 269 && angle < 271)
     168            if (angle > 89.0 && angle < 91.0)
    164169                tempAspect = 1.0 / this->windowAspectRatio_;
    165             else if (angle > 359 && angle < 1 || angle > 179 && angle < 181)
     170            else if (angle > 179 || angle < 1)
    166171                tempAspect = this->windowAspectRatio_;
    167172            else
Note: See TracChangeset for help on using the changeset viewer.