Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2006, 3:48:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the gui branche back
merged with command:
https://svn.orxonox.net/orxonox/branches/gui
no conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r7871 r7919  
    6262  this->toCoordinate = NULL;
    6363  this->toDirection = NULL;
     64
     65  this->size = Vector2D(0,0);
    6466  this->toSize = NULL;
    65   this->setSize2D(1, 1);
    6667
    6768
     
    448449  this->relCoordinate += shift;
    449450  this->bRelCoorChanged = true;
    450 
    451451}
    452452
     
    847847    if (unlikely(this->toSize != NULL))
    848848    {
    849       Vector2D shiftSize = (*this->toSize - Vector2D(this->sizeX, this->sizeY)) *fabsf(dt)*bias;
     849      Vector2D shiftSize = (*this->toSize - this->size) *fabsf(dt)*bias;
    850850      if (likely((shiftSize).len() >= .001))//PNODE_ITERATION_DELTA))
    851851      {
    852         this->sizeX += shiftSize.x;
    853         this->sizeY += shiftSize.y;
     852        this->size += shiftSize;
    854853      }
    855854      else
     
    11091108  if (level == 0)
    11101109    glPopAttrib();
    1111 
    11121110}
    11131111
Note: See TracChangeset for help on using the changeset viewer.