changeset 46:09cdd5bf04e4

Condat display driver fix for 96x64 BW framebuffer
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Oct 2020 22:50:15 +0000
parents c905daaff834
children 502a0a3f6a49
files src/condat/com/src/driver/display.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/condat/com/src/driver/display.c	Sat Oct 17 21:30:59 2020 +0000
+++ b/src/condat/com/src/driver/display.c	Sat Oct 17 22:50:15 2020 +0000
@@ -1809,7 +1809,7 @@
  				txt - trace for debug (if position is out-of-range)
 *******************************************************************************/
 #ifdef DSAMPLE_LITE
-#define LCD_ROW_NUM_LWORDS ((LCD_COL+31)/32) /* col size in longwords         */
+#define LCD_ROW_NUM_LWORDS ((LCD_COL>>5)+1) /* col size in longwords         */
 #define BYTEPERPIXEL (1/8 - unused)
 #ifdef CHECK_LIMITS
 #define DSPL_SET_BITCOLOUR(x,j,col,txt) \