summaryrefslogtreecommitdiff
path: root/nuttx/drivers/lcd/nokia6100.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-02-23 02:08:33 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-02-23 02:08:33 +0000
commit086efc834d511d771a996f895c73d35ca020b1d6 (patch)
tree4fa23d1c64b056046a4bc1f67a4f5ac2af908588 /nuttx/drivers/lcd/nokia6100.c
parentdbf4ba6371fc539eb768eb59f112982db9a0a0c2 (diff)
downloadpx4-nuttx-086efc834d511d771a996f895c73d35ca020b1d6.tar.gz
px4-nuttx-086efc834d511d771a996f895c73d35ca020b1d6.tar.bz2
px4-nuttx-086efc834d511d771a996f895c73d35ca020b1d6.zip
Fix getopt bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3310 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/lcd/nokia6100.c')
-rwxr-xr-xnuttx/drivers/lcd/nokia6100.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/lcd/nokia6100.c b/nuttx/drivers/lcd/nokia6100.c
index e8cac7e96..d450e05db 100755
--- a/nuttx/drivers/lcd/nokia6100.c
+++ b/nuttx/drivers/lcd/nokia6100.c
@@ -2,7 +2,7 @@
* drivers/lcd/nokia6100.c
* Nokia 6100 LCD Display Driver
*
- * Copyright (C) 2010 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* References:
@@ -928,7 +928,7 @@ static int nokia_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffe
#if NOKIA_XBIAS > 0
col += NOKIA_XBIAS;
#endif
-#if NOKIA_XBIAS > 0
+#if NOKIA_YBIAS > 0
row += NOKIA_YBIAS;
#endif
DEBUGASSERT(buffer && col >=0 && (col + npixels) <= NOKIA_XRES && row >= 0 && row < NOKIA_YRES);