Przeglądaj źródła

Fix u8g draw character Y position (#18322)

ellensp 4 lat temu
rodzic
commit
c81ef492e3
No account linked to committer's email address
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0
    2
      Marlin/src/lcd/dogm/u8g_fontutf8.cpp

+ 0
- 2
Marlin/src/lcd/dogm/u8g_fontutf8.cpp Wyświetl plik

@@ -140,7 +140,6 @@ static int fontgroup_cb_draw_u8g(void *userdata, const font_t *fnt_current, cons
140 140
 
141 141
   if (pdata->fnt_prev != fnt_current) {
142 142
     u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
143
-    //u8g_SetFontPosBottom(pdata->pu8g);
144 143
     pdata->fnt_prev = fnt_current;
145 144
   }
146 145
   if ((pdata->max_width != PIXEL_LEN_NOLIMIT) && (pdata->adv + u8g_GetStrPixelWidth(pdata->pu8g, (char*)msg) > pdata->max_width))
@@ -256,7 +255,6 @@ static int fontgroup_cb_draw_u8gstrlen(void *userdata, const font_t *fnt_current
256 255
 
257 256
   if (pdata->fnt_prev != fnt_current) {
258 257
     u8g_SetFont(pdata->pu8g, (const u8g_fntpgm_uint8_t*)fnt_current);
259
-    u8g_SetFontPosBottom(pdata->pu8g);
260 258
     pdata->fnt_prev = fnt_current;
261 259
   }
262 260
   pdata->adv += u8g_GetStrPixelWidth(pdata->pu8g, (char*)msg);

Ładowanie…
Anuluj
Zapisz