diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-06-12 22:54:25 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-06-12 22:54:25 +0200 |
commit | 613191e9e603fe8d1472016c34802156bf308f9f (patch) | |
tree | be4ff368db3146c260a2ac1a20358428bc576b91 /src/editor.cpp | |
parent | f672aaab75181d327e34d778fcc14701b37c78a7 (diff) | |
download | ascedit-613191e9e603fe8d1472016c34802156bf308f9f.tar.gz |
Diffstat (limited to 'src/editor.cpp')
-rw-r--r-- | src/editor.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/editor.cpp b/src/editor.cpp index f8aafac..cde860b 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -23,6 +23,8 @@ editor::editor(sPos _size) drawPoint('+', {_size.x + 1,0} ,_COL_DEFAULT); drawPoint('+', {0,_size.y + 1} ,_COL_DEFAULT); drawPoint('+', {_size.x + 1,_size.y + 1} ,_COL_DEFAULT); + + update(); } editor::~editor() @@ -92,3 +94,12 @@ void editor::moveCursor(sPos _relMovement) setCursor({currentPosition.x + _relMovement.x, currentPosition.y + _relMovement.y}); } +void editor::accept() +{ + switch (currentMode) { + default: + storage->drawPoint(currentChar, currentPosition, currentColor); + update(); + break; + }; +} |