Browse Source

🐛 Fix LCD_COL_X_RJ

Followup to #22471
vanilla_fb_2.0.x
Scott Lahteine 3 years ago
committed by Scott Lahteine
parent
commit
f0bca66d45
  1. 3
      Marlin/src/lcd/lcdprint.h

3
Marlin/src/lcd/lcdprint.h

@ -79,7 +79,6 @@
// Graphical LCD uses the menu font size for cursor positioning // Graphical LCD uses the menu font size for cursor positioning
#define LCD_COL_X(col) (( (col)) * (MENU_FONT_WIDTH)) #define LCD_COL_X(col) (( (col)) * (MENU_FONT_WIDTH))
#define LCD_ROW_Y(row) ((1 + (row)) * (MENU_LINE_HEIGHT)) #define LCD_ROW_Y(row) ((1 + (row)) * (MENU_LINE_HEIGHT))
#define LCD_COL_X_RJ(len) (LCD_WIDTH - LCD_COL_X(len))
#else #else
@ -99,7 +98,6 @@
// Character LCD uses direct cursor positioning // Character LCD uses direct cursor positioning
#define LCD_COL_X(col) (col) #define LCD_COL_X(col) (col)
#define LCD_ROW_Y(row) (row) #define LCD_ROW_Y(row) (row)
#define LCD_COL_X_RJ(len) (LCD_PIXEL_WIDTH - LCD_COL_X(len))
#endif #endif
@ -107,6 +105,7 @@
#define MENU_LINE_HEIGHT MENU_FONT_HEIGHT #define MENU_LINE_HEIGHT MENU_FONT_HEIGHT
#endif #endif
#define LCD_COL_X_RJ(len) (LCD_PIXEL_WIDTH - LCD_COL_X(len))
#define SETCURSOR(col, row) lcd_moveto(LCD_COL_X(col), LCD_ROW_Y(row)) #define SETCURSOR(col, row) lcd_moveto(LCD_COL_X(col), LCD_ROW_Y(row))
#define SETCURSOR_RJ(len, row) lcd_moveto(LCD_COL_X_RJ(len), LCD_ROW_Y(row)) #define SETCURSOR_RJ(len, row) lcd_moveto(LCD_COL_X_RJ(len), LCD_ROW_Y(row))
#define SETCURSOR_X(col) SETCURSOR(col, _lcdLineNr) #define SETCURSOR_X(col) SETCURSOR(col, _lcdLineNr)

Loading…
Cancel
Save