diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-08 12:17:58 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-08 12:17:58 -0500 |
commit | c27af361feeca0e7cbfa51f5589b09d0c110e9c9 (patch) | |
tree | bde1d2cb0924f2cbd9153a9a23b3911b0adfc4de /src/display_draw.c | |
parent | 94a62e8a7b5fcebf94bb0ae7760b9720e8db2715 (diff) |
graphing perfection
Diffstat (limited to 'src/display_draw.c')
-rw-r--r-- | src/display_draw.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/display_draw.c b/src/display_draw.c index 62578e3..f58dda7 100644 --- a/src/display_draw.c +++ b/src/display_draw.c @@ -39,10 +39,15 @@ void dsp_putchar(int c) if (++cury == 12) { UNLOCK; dsp_rect(0, 0, LCD_WIDTH, LCD_HEIGHT, 0); - LOCK; cury = 0; } return; + } else if (c == '\b') { + if (curx > 0) + curx--; + UNLOCK; + dsp_rect(curxo + curx * 12, curyo + cury * 26, 12, 26, 0); + return; } unsigned int start = ((c - ' ') / 16 * 192 * 26 + (c % 16) * 12) * 2; |