fix(bw): Prevent points being drawn outside of LCD buffer (#4550)

This commit is contained in:
3djc
2024-01-17 10:27:27 +10:00
committed by GitHub
parent 0506841f25
commit 3235293580
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -91,6 +91,7 @@ extern coord_t lcdLastLeftPos;
extern coord_t lcdNextPos;
#define DISPLAY_END (displayBuf + DISPLAY_BUFFER_SIZE)
#define IS_IN_DISPLAY(p) ((p) >= displayBuf && (p) < DISPLAY_END)
#define ASSERT_IN_DISPLAY(p) assert((p) >= displayBuf && (p) < DISPLAY_END)