summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/lcd-16bit-vert.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-10-31 00:18:57 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-10-31 01:11:30 -0400
commit60f642ba4f6a9bf2d976f133b85b8f6a7502c14c (patch)
treea37547c0972899968a4a2ff148ded098d40f0f36 /firmware/drivers/lcd-16bit-vert.c
parent202f9df0c1e6132631e9e1372d50fe8dc8e87f20 (diff)
downloadrockbox-60f642ba4f.tar.gz
rockbox-60f642ba4f.tar.bz2
rockbox-60f642ba4f.zip
lcd_framebuffer bugfixes, sanity checks
several issues I saw that could pontentially cause problems scroll engine doesn't take text height into account when checking bounds NBELEMS was one whole row too large hopefully I got them right this time Change-Id: If303da8320429c3964fc675351cb088d46303745
Diffstat (limited to 'firmware/drivers/lcd-16bit-vert.c')
-rw-r--r--firmware/drivers/lcd-16bit-vert.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-16bit-vert.c b/firmware/drivers/lcd-16bit-vert.c
index 8631271482..4422fdea50 100644
--- a/firmware/drivers/lcd-16bit-vert.c
+++ b/firmware/drivers/lcd-16bit-vert.c
@@ -38,6 +38,9 @@
#include "bidi.h"
#include "scroll_engine.h"
+/*#define LOGF_ENABLE*/
+#include "logf.h"
+
#define ROW_INC 1
#define COL_INC lcd_current_viewport->buffer->stride