diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-09 02:32:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-09 02:32:18 +0000 |
commit | 5a8f239c1bc56314693a88c915bf8a218a3f1ada (patch) | |
tree | bc59dfd1cf2e5b19bf8d558ced9797a513408f0c | |
parent | 5e2515ed3229eaf608fe5135db2d473694bf600f (diff) | |
download | nuttx-5a8f239c1bc56314693a88c915bf8a218a3f1ada.tar.gz nuttx-5a8f239c1bc56314693a88c915bf8a218a3f1ada.tar.bz2 nuttx-5a8f239c1bc56314693a88c915bf8a218a3f1ada.zip |
More LCD fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3168 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-x | nuttx/drivers/lcd/nokia6100.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/drivers/lcd/nokia6100.c b/nuttx/drivers/lcd/nokia6100.c index 008fd297b..e8cac7e96 100755 --- a/nuttx/drivers/lcd/nokia6100.c +++ b/nuttx/drivers/lcd/nokia6100.c @@ -232,7 +232,7 @@ /* If bit 9 is set, the byte is data; clear for commands */ -#define NOKIA_LCD_DATA (1 << 9) +#define NOKIA_LCD_DATA (1 << 8) /* Define CONFIG_LCD_REGDEBUG to enable register-level debug output. * (Verbose debug must also be enabled) @@ -275,17 +275,17 @@ # define NOKIA_BPP 8 # define NOKIA_COLORFMT FB_FMT_RGB8_332 # define NOKIA_STRIDE NOKIA_XRES -# define NOKIA_PIX2BYTES(b) (b) +# define NOKIA_PIX2BYTES(p) (p) #elif CONFIG_NOKIA6100_BPP == 12 # define NOKIA_BPP 12 # define NOKIA_COLORFMT FB_FMT_RGB12_444 # define NOKIA_STRIDE ((3*NOKIA_XRES+1)/2) -# define NOKIA_PIX2BYTES(b) ((3*(b)+1)/2) +# define NOKIA_PIX2BYTES(p) ((3*(p)+1)/2) #elif CONFIG_NOKIA6100_BPP == 16 # define NOKIA_BPP 16 # define NOKIA_COLORFMT FB_FMT_RGB16_565 # define NOKIA_STRIDE (2*NOKIA_XRES) -# define NOKIA_PIX2BYTES(b) (2*(b)) +# define NOKIA_PIX2BYTES(p) (2*(p)) #endif /* Handle any potential strange behavior at edges */ |