diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-02-20 19:31:34 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-02-20 19:31:34 +0000 |
commit | 51223e53957943c8b4c142882d2aa86d8025837d (patch) | |
tree | 6348e4c292a2e38f501b6ae3676f76ef26ff21e0 /firmware/drivers/lcd-h100-remote.c | |
parent | 283bfb16f1228f581e8a025bba5e2029daa32278 (diff) | |
download | rockbox-51223e53957943c8b4c142882d2aa86d8025837d.tar.gz rockbox-51223e53957943c8b4c142882d2aa86d8025837d.zip |
Introduced LCD_FBHEIGHT in addition to the already existing LCD_FBWIDTH to ease framebuffer handling a bit. Added equivalent definitions for the remote LCD.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12419 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-h100-remote.c')
-rw-r--r-- | firmware/drivers/lcd-h100-remote.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index e366906724..e8d22213b8 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c | |||
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | /*** globals ***/ | 66 | /*** globals ***/ |
67 | 67 | ||
68 | fb_remote_data lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH] | 68 | fb_remote_data lcd_remote_framebuffer[LCD_REMOTE_FBHEIGHT][LCD_REMOTE_FBWIDTH] |
69 | IBSS_ATTR; | 69 | IBSS_ATTR; |
70 | 70 | ||
71 | static int drawmode = DRMODE_SOLID; | 71 | static int drawmode = DRMODE_SOLID; |
@@ -629,7 +629,7 @@ void lcd_remote_update(void) | |||
629 | #endif | 629 | #endif |
630 | 630 | ||
631 | /* Copy display bitmap to hardware */ | 631 | /* Copy display bitmap to hardware */ |
632 | for (y = 0; y < LCD_REMOTE_HEIGHT/8; y++) | 632 | for (y = 0; y < LCD_REMOTE_FBHEIGHT; y++) |
633 | { | 633 | { |
634 | lcd_remote_write_command(LCD_REMOTE_CNTL_SET_PAGE_ADDRESS | y); | 634 | lcd_remote_write_command(LCD_REMOTE_CNTL_SET_PAGE_ADDRESS | y); |
635 | lcd_remote_write_command(LCD_REMOTE_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf)); | 635 | lcd_remote_write_command(LCD_REMOTE_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf)); |
@@ -655,8 +655,8 @@ void lcd_remote_update_rect(int x, int y, int width, int height) | |||
655 | width = LCD_REMOTE_WIDTH - x; | 655 | width = LCD_REMOTE_WIDTH - x; |
656 | if (width <= 0) | 656 | if (width <= 0) |
657 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ | 657 | return; /* nothing left to do, 0 is harmful to lcd_write_data() */ |
658 | if(ymax >= LCD_REMOTE_HEIGHT/8) | 658 | if(ymax >= LCD_REMOTE_FBHEIGHT) |
659 | ymax = LCD_REMOTE_HEIGHT/8-1; | 659 | ymax = LCD_REMOTE_FBHEIGHT-1; |
660 | 660 | ||
661 | #ifdef HAVE_REMOTE_LCD_TICKING | 661 | #ifdef HAVE_REMOTE_LCD_TICKING |
662 | /* Adjust byte delay for emi reduction */ | 662 | /* Adjust byte delay for emi reduction */ |