Changeset 3280 for code/trunk/src/orxonox/overlays/console
- Timestamp:
- Jul 12, 2009, 11:58:01 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 (added) merged: 3235-3237,3245-3250,3253-3254,3260-3261,3265,3270
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/console/InGameConsole.cc
r3196 r3280 30 30 #include "InGameConsole.h" 31 31 32 #include <algorithm> 32 33 #include <string> 33 34 #include <OgreOverlay.h> … … 219 220 for (int i = 0; i < LINES; i++) 220 221 { 221 this->consoleOverlayTextAreas_[i] = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + convertToString(i)));222 this->consoleOverlayTextAreas_[i] = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + multi_cast<std::string>(i))); 222 223 this->consoleOverlayTextAreas_[i]->setMetricsMode(Ogre::GMM_PIXELS); 223 224 this->consoleOverlayTextAreas_[i]->setFontName("MonofurConsole"); … … 425 426 426 427 if (LINES > 0) 427 this->maxCharsPerLine_ = max((unsigned int)10, (unsigned int) ((float)this->desiredTextWidth_ / CHAR_WIDTH));428 this->maxCharsPerLine_ = std::max((unsigned int)10, (unsigned int) ((float)this->desiredTextWidth_ / CHAR_WIDTH)); 428 429 else 429 430 this->maxCharsPerLine_ = 10;
Note: See TracChangeset
for help on using the changeset viewer.