summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-11-12 13:25:03 +0000
committerJens Arnold <amiconn@rockbox.org>2006-11-12 13:25:03 +0000
commit7b30e50812294fa8d6626f4f08608730d9dcea80 (patch)
tree847a94916b364088ead75247f17d726a2f9117a0
parent6bdf3ee6f28097e25770ae43e28dd4b59054e88f (diff)
downloadrockbox-7b30e50812294fa8d6626f4f08608730d9dcea80.tar.gz
rockbox-7b30e50812294fa8d6626f4f08608730d9dcea80.tar.bz2
rockbox-7b30e50812294fa8d6626f4f08608730d9dcea80.zip
Adjust scrollable lines to varying LCD sizes in the 2bit vertical packing LCD driver. Doesn't change anything for current targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11518 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/lcd-2bit-vert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-2bit-vert.c b/firmware/drivers/lcd-2bit-vert.c
index a0598df318..799865c36d 100644
--- a/firmware/drivers/lcd-2bit-vert.c
+++ b/firmware/drivers/lcd-2bit-vert.c
@@ -33,7 +33,7 @@
/*** definitions ***/
-#define SCROLLABLE_LINES 26
+#define SCROLLABLE_LINES ((LCD_HEIGHT+4)/5 < 32 ? (LCD_HEIGHT+4)/5 : 32)
/*** globals ***/