Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8543 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 16, 2006, 5:27:29 PM (18 years ago)
Author:
bensch
Message:

dots at the beginning

Location:
branches/gui/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/text_engine/limited_width_text.cc

    r8542 r8543  
    141141      }
    142142      break;
     143
    143144    case Begin:
    144       for (unsigned int i = this->text().size() - 1; i < 0; i--)
     145      int i = text().size() -1;
     146      for (; i >= 0; --i)
    145147      {
    146148        if (width + dotsSize > maxWidth )
     
    157159  }
    158160
     161  printf("%f %s\n", width, _dotedText.c_str());
    159162  this->setSizeX2D(width * this->size());
    160163}
  • branches/gui/src/lib/gui/gl/glgui_inputline.cc

    r8542 r8543  
    5353    this->_text.setFont("fonts/final_frontier.ttf", 20);
    5454    this->_text.setLineWidth(400);
    55     this->_text.setDotsPosition(LimitedWidthText::End);
     55    this->_text.setDotsPosition(LimitedWidthText::Begin);
    5656    this->_text.setColor(this->frontColor());
    5757    this->_text.setVisibility(false);
Note: See TracChangeset for help on using the changeset viewer.