I have a problem with u8g.drawRBox and drawRFrame.
If i try to draw one of these where height is < 2 x radius of corners + 2, the box folds over top or bottom.
e.g if i do
u8g.drawRFrame(5,0,25,6,2); it works ok
but if i do
u8g.drawRFrame(5,0,25,5,2);
the box is screwed up, having short vertical lines coming down beyond the specified height.
Well, thats why the manual (userreference · olikraus/u8glib Wiki · GitHub) states: The result is undefined if h < 2*(r+1).
With r = 2, this means h < 6 is undefined. In your case h is equal to 5, so result is not predictable.
Of course additional checking could be done, but this would also make u8glib bigger and slower.
Aktually i am not sure whether this is a problem and how i could support here.
The issue for me is that i was using the RBox and RFrame to make bar grapth gauges, so when they get down to that level it goes wrong. For now i have used the square Box and Frame routine, but it doesnt look quite as nice.
I cant be the first who has done this....