|
|
|
|
140
|
|
140
|
|
141
|
if (pdata->fnt_prev != fnt_current) {
|
141
|
if (pdata->fnt_prev != fnt_current) {
|
142
|
u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
|
142
|
u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
|
143
|
- //u8g_SetFontPosBottom(pdata->pu8g);
|
|
|
144
|
pdata->fnt_prev = fnt_current;
|
143
|
pdata->fnt_prev = fnt_current;
|
145
|
}
|
144
|
}
|
146
|
if ((pdata->max_width != PIXEL_LEN_NOLIMIT) && (pdata->adv + u8g_GetStrPixelWidth(pdata->pu8g, (char*)msg) > pdata->max_width))
|
145
|
if ((pdata->max_width != PIXEL_LEN_NOLIMIT) && (pdata->adv + u8g_GetStrPixelWidth(pdata->pu8g, (char*)msg) > pdata->max_width))
|
|
|
|
|
256
|
|
255
|
|
257
|
if (pdata->fnt_prev != fnt_current) {
|
256
|
if (pdata->fnt_prev != fnt_current) {
|
258
|
u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
|
257
|
u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
|
259
|
- u8g_SetFontPosBottom(pdata->pu8g);
|
|
|
260
|
pdata->fnt_prev = fnt_current;
|
258
|
pdata->fnt_prev = fnt_current;
|
261
|
}
|
259
|
}
|
262
|
pdata->adv += u8g_GetStrPixelWidth(pdata->pu8g, (char*)msg);
|
260
|
pdata->adv += u8g_GetStrPixelWidth(pdata->pu8g, (char*)msg);
|