Try to implement DisplayController
This commit is contained in:
@@ -45,8 +45,8 @@ std::string Display::fit_score_string(std::string & score_string, const unsigned
|
||||
if (score_length > length)
|
||||
{
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Score too long for display";
|
||||
std::string full_display;
|
||||
return full_display.insert(0, length, '9');
|
||||
std::string filled_display;
|
||||
return filled_display.insert(0, length, '9');
|
||||
}
|
||||
|
||||
score_string.insert(0, length - score_length, '\0');
|
||||
|
||||
Reference in New Issue
Block a user