[escher] TextField: all text fields use the same draft text buffer

This commit is contained in:
Émilie Feral
2019-08-09 16:26:53 +02:00
parent 70e3bcd8c1
commit 12060e2ae7
55 changed files with 134 additions and 167 deletions

View File

@@ -8,9 +8,9 @@ namespace Probability {
static inline KDCoordinate minCoordinate(KDCoordinate x, KDCoordinate y) { return x < y ? x : y; }
static inline KDCoordinate maxCoordinate(KDCoordinate x, KDCoordinate y) { return x > y ? x : y; }
CalculationCell::CalculationCell(Responder * parentResponder, char * draftTextBuffer, InputEventHandlerDelegate * inputEventHandlerDelegate, TextFieldDelegate * textFieldDelegate) :
CalculationCell::CalculationCell(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandlerDelegate, TextFieldDelegate * textFieldDelegate) :
m_text(KDFont::LargeFont, I18n::Message::Default, 0.5f, 0.5f),
m_calculation(parentResponder, inputEventHandlerDelegate, textFieldDelegate, draftTextBuffer),
m_calculation(parentResponder, inputEventHandlerDelegate, textFieldDelegate),
m_isResponder(true)
{
}