mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2026-01-23 11:16:26 +00:00
update putc parameters.
git-svn-id: svn://qnap.local/TwoTerm/branches/fix-gno-scrolling-region@3164 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
@@ -67,13 +67,13 @@ iRect Screen::endUpdate()
|
||||
|
||||
|
||||
|
||||
void Screen::putc(uint8_t c, const context &ctx)
|
||||
void Screen::putc(uint8_t c, iPoint cursor, uint8_t flags)
|
||||
{
|
||||
auto cursor = ctx.cursor;
|
||||
if (!_frame.contains(cursor)) return;
|
||||
if (cursor.x >= _frame.maxX() || cursor.y >= _frame.maxY()) return;
|
||||
|
||||
_updates.push_back(cursor);
|
||||
_screen[cursor.y][cursor.x] = char_info(c, ctx.flags);
|
||||
_screen[cursor.y][cursor.x] = char_info(c, flags);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user