3djc/horus fix #4041 (#4042)

* Reduce model name size until they fit into the buffer

* SMLSIZE is better (but cut is still needed)

* Rework screen layout to handle up to 15 chars

* Allow for the two scroolbars (models and cats)
This commit is contained in:
3djc
2016-11-19 13:07:06 +01:00
committed by Bertrand Songis
parent a083342cda
commit a35d6b6a05
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
#include <list>
#include "sdcard.h"
#define MODELCELL_WIDTH 151
#define MODELCELL_WIDTH 166
#define MODELCELL_HEIGHT 59
class ModelCell
@@ -63,7 +63,7 @@ class ModelCell
}
else {
char timer[LEN_TIMER_STRING];
buffer->drawSizedText(5, 2, header.name, LEN_MODEL_NAME, ZCHAR|TEXT_COLOR);
buffer->drawSizedText(1, 2, header.name, LEN_MODEL_NAME, SMLSIZE|ZCHAR|TEXT_COLOR);
getTimerString(timer, 0);
buffer->drawText(101, 40, timer, TEXT_COLOR);
for (int i=0; i<4; i++) {