Parcourir la source

Tweak animated draw call

Scott Lahteine il y a 5 ans
Parent
révision
a07c4af393
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1
    2
      Marlin/src/lcd/dogm/ultralcd_DOGM.cpp

+ 1
- 2
Marlin/src/lcd/dogm/ultralcd_DOGM.cpp Voir le fichier

@@ -211,8 +211,7 @@ bool MarlinUI::detected() { return true; }
211 211
     #else
212 212
       constexpr millis_t d = MARLIN_BOOTSCREEN_FRAME_TIME;
213 213
       LOOP_L_N(f, COUNT(marlin_bootscreen_animation)) {
214
-        const u8g_pgm_uint8_t * const bmp = (u8g_pgm_uint8_t*)pgm_read_ptr(&marlin_bootscreen_animation[f]);
215
-        draw_bootscreen_bmp(bmp);
214
+        draw_bootscreen_bmp((uint8_t*)pgm_read_ptr(&marlin_bootscreen_animation[f]));
216 215
         if (d) safe_delay(d);
217 216
       }
218 217
     #endif

Chargement…
Annuler
Enregistrer