From 1aaf25d5cc24b00064f24d2f4639b7be1da2ad0e Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Mon, 16 May 2011 00:15:39 +0200 Subject: [PATCH] Add support for characters starting with a set pixel. --- lcd/decoder.c | 5 +++++ tools/fdec.c | 8 ++++++++ tools/makefont.pl | 12 +++++++----- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/lcd/decoder.c b/lcd/decoder.c index 871771e..012c97e 100644 --- a/lcd/decoder.c +++ b/lcd/decoder.c @@ -50,6 +50,11 @@ uint8_t * pk_decode(const uint8_t * data,int * len){ int pos=0; // Decoder internal: current bit position (0..7) int nyb; // Decoder internal: current nibble / value + if(data[ctr]>>4 == 14){ // Char starts with 1-bits. + gnn(); + curbit=1; + }; + while(ctrau8FontTable[off+0]>>4 == 14){ + // HACK: char starts with 1-bits, + gnn(); + curbit=1; + }; + while(ctr