Add a comment about a hack

This commit is contained in:
Jeremy Rand 2012-07-20 16:26:00 -05:00
parent 4943ad96f2
commit 90588b5158
2 changed files with 7 additions and 0 deletions

BIN
.curtaUI.c.swp Normal file

Binary file not shown.

View File

@ -69,6 +69,13 @@ typedef int8_t tJoyPos;
#define SLIDER_Y_SPACING (SLIDER_HEIGHT + (2 * SLIDER_Y_OFFSET))
// Bad news here. This code in this module uses the defines for the
// number of digits in counter and result except for this display
// buffer and the offsets into it. The code assumes a specific size.
// It doesn't really have to. I could build the template string at
// runtime and even statically allocate the buffer based on a formula
// of the sizes, but that just seemed too much work. Fix it if you
// want to change the width of these fields
static char displayBuffer[] =
"\n\n"
"Counter: 0 0 0 0 0 0 0 0\n"