1
0
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:
Werner Almesberger 2013-01-31 14:47:08 -03:00
parent 137ed18dc2
commit 709506e6d6

View File

@ -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;