- Timestamp:
- Dec 2, 2009, 2:42:56 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/IOConsole.cc
r6183 r6196 458 458 , cout_(std::cout.rdbuf()) 459 459 , promptString_("orxonox # ") 460 , inputLineHeight_(1) 460 461 , statusLines_(1) 461 , inputLineHeight_(1)462 462 , lastOutputLineHeight_(0) 463 463 { … … 684 684 void IOConsole::createNewOutputLines(int lines) 685 685 { 686 CHAR_INFO fillChar = { ' ', FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED};686 CHAR_INFO fillChar = {{' '}, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED}; 687 687 // Lines to scroll input/status down (if possible) 688 688 int linesDown = clamp(terminalHeight_ - inputLineRow_ - inputLineHeight_ - statusLines_, 0, lines); … … 732 732 int statusLineRow = this->inputLineRow_ + this->inputLineHeight_; 733 733 SMALL_RECT oldRect = {0, statusLineRow, this->terminalWidth_ - 1, statusLineRow + this->statusLines_}; 734 CHAR_INFO fillChar = { ' ', FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED};734 CHAR_INFO fillChar = {{' '}, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED}; 735 735 ScrollConsoleScreenBuffer(stdOutHandle_, &oldRect, NULL, makeCOORD(0, statusLineRow + newLines), &fillChar); 736 736 // Clear potential leftovers -
code/branches/presentation2/src/libraries/core/IOConsole.h
r6183 r6196 43 43 #elif defined(ORXONOX_PLATFORM_WINDOWS) 44 44 #define WIN32_LEAN_AND_MEAN 45 #ifndef NOMINMAX 45 46 #define NOMINMAX 47 #endif 46 48 #include <windows.h> 47 49 #endif
Note: See TracChangeset
for help on using the changeset viewer.