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
This commit is contained in:
William Wilgus 2020-10-31 00:18:57 -04:00
parent 202f9df0c1
commit 60f642ba4f
7 changed files with 55 additions and 24 deletions

View file

@ -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