c++11 updates.

git-svn-id: svn://qnap.local/TwoTerm/trunk@3114 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock
2016-07-11 02:25:39 +00:00
parent 291b16ff12
commit 64274d09c4
3 changed files with 29 additions and 35 deletions

View File

@@ -99,9 +99,12 @@ void Screen::clearFlagBit(uint8_t bit)
void Screen::putc(TextPort *textPort, uint8_t c)
{
putc(textPort, c, _flag);
}
void Screen::putc(TextPort *textPort, uint8_t c, uint8_t flag)
{
/*
* textport must be valid.
@@ -119,14 +122,14 @@ void Screen::putc(TextPort *textPort, uint8_t c)
if (textPort->rightMargin == TextPort::MarginOverwrite)
{
_updates.push_back(cursor);
_screen[cursor.y][cursor.x] = CharInfo(c, _flag);
_screen[cursor.y][cursor.x] = CharInfo(c, flag);
return;
}
//if (textPort->rightMargin == TextPort::MarginWrap)
}
_updates.push_back(cursor);
_screen[cursor.y][cursor.x] = CharInfo(c, _flag);
_screen[cursor.y][cursor.x] = CharInfo(c, flag);
if (textPort->advanceCursor)
{