Changeset 7183 for code/trunk/src/orxonox/ChatInputHandler.cc
- Timestamp:
- Aug 18, 2010, 7:49:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/ChatInputHandler.cc
r7163 r7183 129 129 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 130 130 assert( this->text_colors[ i ] ); 131 green += 0.2 , blue += 0.2;131 green += 0.2f, blue += 0.2f; 132 132 } 133 133 … … 137 137 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 138 138 assert( this->text_colors[ i ] ); 139 red += 0.2 , blue += 0.2;139 red += 0.2f, blue += 0.2f; 140 140 } 141 141 … … 145 145 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 146 146 assert( this->text_colors[ i ] ); 147 red += 0.2 , green += 0.2;147 red += 0.2f, green += 0.2f; 148 148 } 149 149 } … … 275 275 { 276 276 /* adjust curser position - magic number 5 for font width */ 277 sub_adjust_dispoffset( ( this->input->getUnclippedInnerRect().getWidth()/6),277 sub_adjust_dispoffset( (int)(this->input->getUnclippedInnerRect().getWidth()/6), 278 278 cursorpos, assembled.length() ); 279 279 this->input->setProperty( "Text", assembled.substr( disp_offset ) ); … … 282 282 { 283 283 /* adjust curser position - magic number 5 for font width */ 284 sub_adjust_dispoffset( ( this->inputonly->getUnclippedInnerRect().getWidth()/6),284 sub_adjust_dispoffset( (int)(this->inputonly->getUnclippedInnerRect().getWidth()/6), 285 285 cursorpos, assembled.length() ); 286 286 this->inputonly->setProperty( "Text", assembled.substr( disp_offset) );
Note: See TracChangeset
for help on using the changeset viewer.