[Open] Bugs in Core.menu function

Options not drawing correctly.

[details=Not a bug]While using Core.menu function in simulator if you press b or c button (x and c), program crashing. I don’t know about HW.
It’s not bug. if b or c pressed Core.menu return -1. i missed this in my program[/details]

Please post code, I will fix

#include "Pokitto.h"

Pokitto::Core game;

const char* menuItems[]={"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"};
int8_t itemNumber;

int main () {
game.display.persistence = true;
while (game.isRunning()) {
    if (game.update()) {
            itemNumber = game.menu(menuItems, 20);
        game.display.print("Hello World! ");

in this example program not crashing. But still not drawing correctly. I will check my program and if i cannot find (and it finished :grinning:) i will post. I hope i can finish today.

I know the problem is in the library code. The height of the screen is hard-coded in the drawing routine. When I make that variable, the problem will disappear. I have time later today to look at it

It’s not important. If you need to fix/do other things don’t spend your time with this. It can wait :slight_smile:

so i found it’s not bug. I edited first message. Debugging is saving lifes :grinning: