changeset 449:3bf62c0a7f34

Condat display driver C-Sample config: fixed bug in getScrPoint()
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 29 Jan 2018 06:27:47 +0000
parents e56e74e8b730
children 395e464e4005
files src/condat2/com/src/driver/display.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/condat2/com/src/driver/display.c	Mon Jan 29 06:24:55 2018 +0000
+++ b/src/condat2/com/src/driver/display.c	Mon Jan 29 06:27:47 2018 +0000
@@ -4821,10 +4821,11 @@
     x1 = (scrX-1)-px;
     y1 = (py+48) & 63; //(py-16) ;
     //Display is in columns for TI drivers
-	m2 = 0x80000000;
+    m2 = 0x80000000;
     m2 = m2 >> (y1 & 31); //shift m2 by 0-31
     y1 = y1 >> 5; // 32bits/word
-	return (picture_bw[lWord] & m2);
+    lWord = x1*LCD_COL_NUM_LWORDS+y1;
+    return (picture_bw[lWord] & m2);
 #endif //CSAMPLE
 
 #ifdef DSAMPLE_COLOUR