summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/xlcd_scroll.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-08-25 20:47:44 +0000
committerThomas Jarosch <tomj@simonv.com>2011-08-25 20:47:44 +0000
commit9dcde3571cf7270d48d5c86e820a5699b934a278 (patch)
tree4e323952728630b4327d3abcb1c26b2aa695119c /apps/plugins/lib/xlcd_scroll.c
parente0024c9a7138ce758524b2d0c03731f379a1b002 (diff)
downloadrockbox-9dcde3571cf7270d48d5c86e820a5699b934a278.tar.gz
rockbox-9dcde3571cf7270d48d5c86e820a5699b934a278.zip
Also fix uninitialized variables in xlcd_scroll_up()/xlcd_scroll_down()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30354 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/xlcd_scroll.c')
-rw-r--r--apps/plugins/lib/xlcd_scroll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/xlcd_scroll.c b/apps/plugins/lib/xlcd_scroll.c
index 8f55f4153e..f2fc71ea47 100644
--- a/apps/plugins/lib/xlcd_scroll.c
+++ b/apps/plugins/lib/xlcd_scroll.c
@@ -367,8 +367,8 @@ void xlcd_scroll_down(int count)
367/* Scroll up */ 367/* Scroll up */
368void xlcd_scroll_up(int count) 368void xlcd_scroll_up(int count)
369{ 369{
370 int bitcount, oldmode; 370 int bitcount=0, oldmode;
371 int blockcount, blocklen; 371 int blockcount=0, blocklen;
372 372
373 if ((unsigned) count >= LCD_HEIGHT) 373 if ((unsigned) count >= LCD_HEIGHT)
374 { 374 {
@@ -561,8 +561,8 @@ void xlcd_scroll_up(int count)
561/* Scroll up */ 561/* Scroll up */
562void xlcd_scroll_down(int count) 562void xlcd_scroll_down(int count)
563{ 563{
564 int bitcount, oldmode; 564 int bitcount=0, oldmode;
565 int blockcount, blocklen; 565 int blockcount=0, blocklen;
566 566
567 if ((unsigned) count >= LCD_HEIGHT) 567 if ((unsigned) count >= LCD_HEIGHT)
568 { 568 {