This commit is contained in:
kraus 2021-09-21 22:51:07 +02:00
parent e149ea90e7
commit 5143e411a4
1 changed files with 3 additions and 0 deletions

View File

@ -153,8 +153,11 @@ void u8g2_DrawValueMark(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t
/*=========================================================================*/
/* helper function */
u8g2_uint_t mui_get_x(mui_t *ui) MUI_NOINLINE;
u8g2_uint_t mui_get_x(mui_t *ui)
{
if ( u8g2_GetDisplayWidth(mui_get_U8g2(ui)) >= 255 )
return ui->x / 2;
return ui->x;
}