Browse Source

Fix SETCURSOR_RJ

Scott Lahteine 6 years ago
parent
commit
7e0008f5b3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/lcd/ultralcd.h

+ 2
- 2
Marlin/src/lcd/ultralcd.h View File

@@ -58,12 +58,12 @@
58 58
 
59 59
   #if HAS_GRAPHICAL_LCD
60 60
     #define SETCURSOR(col, row) lcd_moveto(col * (MENU_FONT_WIDTH), (row + 1) * (MENU_FONT_HEIGHT))
61
-    #define SETCURSOR_RJ(len, row) lcd_moveto(LCD_PIXEL_WIDTH - len * (MENU_FONT_WIDTH), (row + 1) * (MENU_FONT_HEIGHT))
61
+    #define SETCURSOR_RJ(len, row) lcd_moveto(LCD_PIXEL_WIDTH - (len) * (MENU_FONT_WIDTH), (row + 1) * (MENU_FONT_HEIGHT))
62 62
     #define LCDPRINT(p) u8g.print(p)
63 63
     #define LCDWRITE(c) u8g.print(c)
64 64
   #else
65 65
     #define SETCURSOR(col, row) lcd_moveto(col, row)
66
-    #define SETCURSOR_RJ(len, row) lcd_moveto(LCD_WIDTH - len, row)
66
+    #define SETCURSOR_RJ(len, row) lcd_moveto(LCD_WIDTH - (len), row)
67 67
     #define LCDPRINT(p) lcd_put_u8str(p)
68 68
     #define LCDWRITE(c) lcd_put_wchar(c)
69 69
   #endif

Loading…
Cancel
Save