mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 21:08:07 +02:00
ubb-la/gui.c (gui): the upper bound for "pos" is nibbles-skip-1, not "nibbles"
This commit is contained in:
parent
709506e6d6
commit
f9b3c36c6b
@ -460,8 +460,8 @@ void gui(const uint8_t *buf, int skip, int nibbles, double freq)
|
|||||||
break;
|
break;
|
||||||
case SDLK_RIGHT:
|
case SDLK_RIGHT:
|
||||||
pos += pos_step(zoom);
|
pos += pos_step(zoom);
|
||||||
if (pos > nibbles-1)
|
if (pos > nibbles-skip-1)
|
||||||
pos = nibbles-1;
|
pos = nibbles-skip-1;
|
||||||
break;
|
break;
|
||||||
case SDLK_RETURN:
|
case SDLK_RETURN:
|
||||||
case SDLK_q:
|
case SDLK_q:
|
||||||
|
Loading…
Reference in New Issue
Block a user