Browse Source

Redraw after cursor correction in STATIC_ITEM

Scott Lahteine 9 years ago
parent
commit
5051723c2e
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/ultralcd.cpp

+ 3
- 1
Marlin/ultralcd.cpp View File

282
   // Used to print static text with no visible cursor.
282
   // Used to print static text with no visible cursor.
283
   #define STATIC_ITEM(label, args...) \
283
   #define STATIC_ITEM(label, args...) \
284
     if (_menuItemNr == _lineNr) { \
284
     if (_menuItemNr == _lineNr) { \
285
-      if (encoderLine == _menuItemNr && _menuItemNr < LCD_HEIGHT - 1) \
285
+      if (encoderLine == _menuItemNr && _menuItemNr < LCD_HEIGHT - 1) { \
286
         encoderPosition += ENCODER_STEPS_PER_MENU_ITEM; \
286
         encoderPosition += ENCODER_STEPS_PER_MENU_ITEM; \
287
+        lcdDrawUpdate = LCDVIEW_CALL_REDRAW_NEXT; \
288
+      } \
287
       if (lcdDrawUpdate) \
289
       if (lcdDrawUpdate) \
288
         lcd_implementation_drawmenu_static(_drawLineNr, PSTR(label), ## args); \
290
         lcd_implementation_drawmenu_static(_drawLineNr, PSTR(label), ## args); \
289
     } \
291
     } \

Loading…
Cancel
Save