Fixing a bug in the vertical mirroring code.

This commit is contained in:
Matt Nutsch 2021-04-18 21:43:07 -05:00
parent cdbcd6b813
commit af8faf52d2
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ void u8g2_draw_mirror_vertical_r0(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8
u8g2_uint_t yy;
yy = u8g2->height;
yy -= y;
if ( (dir & 1) == 0 )
if ( (dir & 1) == 1 )
{
yy -= len;
}