Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6196 for code


Ignore:
Timestamp:
Dec 2, 2009, 2:42:56 PM (15 years ago)
Author:
landauf
Message:

fixed some warnings in IOConsole

Location:
code/branches/presentation2/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/IOConsole.cc

    r6183 r6196  
    458458        , cout_(std::cout.rdbuf())
    459459        , promptString_("orxonox # ")
     460        , inputLineHeight_(1)
    460461        , statusLines_(1)
    461         , inputLineHeight_(1)
    462462        , lastOutputLineHeight_(0)
    463463    {
     
    684684    void IOConsole::createNewOutputLines(int lines)
    685685    {
    686         CHAR_INFO fillChar = {' ', FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED};
     686        CHAR_INFO fillChar = {{' '}, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED};
    687687        // Lines to scroll input/status down (if possible)
    688688        int linesDown = clamp(terminalHeight_ - inputLineRow_ - inputLineHeight_ - statusLines_, 0, lines);
     
    732732            int statusLineRow = this->inputLineRow_ + this->inputLineHeight_;
    733733            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};
    735735            ScrollConsoleScreenBuffer(stdOutHandle_, &oldRect, NULL, makeCOORD(0, statusLineRow + newLines), &fillChar);
    736736            // Clear potential leftovers
  • code/branches/presentation2/src/libraries/core/IOConsole.h

    r6183 r6196  
    4343#elif defined(ORXONOX_PLATFORM_WINDOWS)
    4444#define WIN32_LEAN_AND_MEAN
     45#ifndef NOMINMAX
    4546#define NOMINMAX
     47#endif
    4648#include <windows.h>
    4749#endif
Note: See TracChangeset for help on using the changeset viewer.