summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-h100-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-h100-remote.c')
-rw-r--r--firmware/drivers/lcd-h100-remote.c8
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
68fb_remote_data lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH] 68fb_remote_data lcd_remote_framebuffer[LCD_REMOTE_FBHEIGHT][LCD_REMOTE_FBWIDTH]
69 IBSS_ATTR; 69 IBSS_ATTR;
70 70
71static int drawmode = DRMODE_SOLID; 71static 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 */