- Timestamp:
- Apr 29, 2006, 9:49:11 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/BuildLibs.am
r7256 r7451 2 2 libORXlibs_a_LIBRARIES_ = \ 3 3 $(LIB_PREFIX)/libORXlibs.a \ 4 $(LIB_PREFIX)/shell/libORXshell.a \ 4 5 $(LIB_PREFIX)/gui/gtk_gui/libORXgui.a \ 5 6 $(LIB_PREFIX)/gui/gl_gui/libORXglgui.a \ … … 18 19 $(LIB_PREFIX)/parser/cmdline_parser/libCmdLineParser.a \ 19 20 $(LIB_PREFIX)/parser/ini_parser/libIniParser.a \ 20 $(LIB_PREFIX)/shell/libORXshell.a \21 21 $(LIB_PREFIX)/math/libORXmath.a \ 22 22 $(LIB_PREFIX)/libORXlibs.a -
trunk/src/lib/graphics/text_engine/multi_line_text.cc
r7450 r7451 80 80 81 81 glBegin(GL_QUADS); 82 for (unsigned int i = 0; i < this->getText().size(); i++)82 for (unsigned int i = 0; i < this->getText().size(); ++i) 83 83 { 84 if (unlikely(t mpGlyph->character== '\n' || i == this->lineEnds[lineNumber]))84 if (unlikely(this->getText()[i] == '\n' || i == this->lineEnds[lineNumber])) 85 85 { 86 // go to the next Line.87 lineNumber++;86 // go to the next Line. 87 ++lineNumber; 88 88 posX = 0.0f; 89 89 posY += this->lineSpacing + this->getFont()->getMaxHeight(); … … 117 117 { 118 118 this->lineEnds.clear(); 119 this->lineEnds.push_back(0); 119 120 float width = 0.0f; 120 121 // TODO make size local to this (not using the one from Element2D. -
trunk/src/lib/shell/shell_input.cc
r7374 r7451 46 46 */ 47 47 ShellInput::ShellInput () 48 : Text ("") 49 { 48 : MultiLineText ("") 49 { 50 this->setLineWidth(100); 51 50 52 this->pressedKey = SDLK_FIRST; 51 53 this->setClassID(CL_SHELL_INPUT, "ShellInput"); -
trunk/src/lib/shell/shell_input.h
r7403 r7451 10 10 #define _SHELL_INPUT_H 11 11 12 #include " text.h"12 #include "multi_line_text.h" 13 13 #include "event_listener.h" 14 14 #include "shell_completion.h" … … 28 28 * [UP] and [DOWN] move through the history of allready given commands. 29 29 */ 30 class ShellInput : public Text, public EventListener30 class ShellInput : public MultiLineText, public EventListener 31 31 { 32 32
Note: See TracChangeset
for help on using the changeset viewer.