Open GoogleCodeExporter opened 9 years ago
can you post code where i can see the problem? Thanks
Original comment by olikr...@gmail.com
on 3 Mar 2015 at 4:50
I'm experiencing the same problem, however it was not present in earlier revisions of my project. Going to bisect now…
As a workaround, it's possible to add a read-only, zero-size button to the end of the M2_LIST:
M2_BUTTON(el_dummy, "h0w0r1", "", NULL);
OK, I found the proper solution.
Always set the u8g color index by using u8g_SetColorIndex(&u8g,1)
in your custom drawing routine.
It seems that m2tk always leaves the color index at 1 except when you click on the last button of a menu. That makes sense, because the last thing drawn by m2tk was the inverted (highlighted) button.
It would be possible to add a call to u8g_SetColorIndex
in the end of m2_Draw
, that would leave u8g in a consistent state and save other users from this apparently strange and quite hard to debug issue…
Original issue reported on code.google.com by
ant.ber...@gmail.com
on 1 Mar 2015 at 7:05