From 613191e9e603fe8d1472016c34802156bf308f9f Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 12 Jun 2019 22:54:25 +0200 Subject: Sort-of working --- src/editor.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/editor.cpp') 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; + }; +} -- cgit v1.2.3