mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-16 18:45:54 +02:00
ubb-la/gui.c (show_map): fix calculation of middle point
Also here, we need to take into account that "pos" is zero-based.
This commit is contained in:
parent
137ed18dc2
commit
709506e6d6
@ -175,7 +175,7 @@ static void textf(int x, int y, uint32_t color, const char *fmt, ...)
|
||||
static void show_map(int skip, int nibbles, int s0, int s1)
|
||||
{
|
||||
int w = nibbles-skip;
|
||||
int m = (nibbles+skip) >> 1;
|
||||
int m = (nibbles-skip) >> 1;
|
||||
int scale = 0;
|
||||
int x0, x1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user