mirror of
https://github.com/jeremysrand/CurtaSim.git
synced 2024-09-28 04:55:07 +00:00
Add a comment about a hack
This commit is contained in:
parent
4943ad96f2
commit
90588b5158
BIN
.curtaUI.c.swp
Normal file
BIN
.curtaUI.c.swp
Normal file
Binary file not shown.
@ -69,6 +69,13 @@ typedef int8_t tJoyPos;
|
|||||||
#define SLIDER_Y_SPACING (SLIDER_HEIGHT + (2 * SLIDER_Y_OFFSET))
|
#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[] =
|
static char displayBuffer[] =
|
||||||
"\n\n"
|
"\n\n"
|
||||||
"Counter: 0 0 0 0 0 0 0 0\n"
|
"Counter: 0 0 0 0 0 0 0 0\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user