mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-04-21 12:27:27 +03: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:
@@ -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)
|
static void show_map(int skip, int nibbles, int s0, int s1)
|
||||||
{
|
{
|
||||||
int w = nibbles-skip;
|
int w = nibbles-skip;
|
||||||
int m = (nibbles+skip) >> 1;
|
int m = (nibbles-skip) >> 1;
|
||||||
int scale = 0;
|
int scale = 0;
|
||||||
int x0, x1;
|
int x0, x1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user