From c72b454286864d728de676ebdf92288dd04ace45 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 15 Dec 2013 00:38:48 +0100 Subject: Fix reds. Also apply the new scrolling to lcd charcell (this even uncovered an error). Change-Id: I29243bb36b6cec1471bd6c0afc64e00547a68c50 --- firmware/export/lcd.h | 2 +- firmware/export/scroll_engine.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 37e6bf4d16..f6b32a37ee 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -195,6 +195,7 @@ extern int lcd_getstringsize(const unsigned char *str, int *w, int *h); extern void lcd_set_viewport(struct viewport* vp); extern void lcd_update(void); extern void lcd_update_viewport(void); +extern void lcd_update_viewport_rect(int x, int y, int width, int height); extern void lcd_clear_viewport(void); extern void lcd_clear_display(void); extern void lcd_putsxy(int x, int y, const unsigned char *string); @@ -234,7 +235,6 @@ extern void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases, /* update a fraction of the screen */ extern void lcd_update_rect(int x, int y, int width, int height); -extern void lcd_update_viewport_rect(int x, int y, int width, int height); #ifdef HAVE_REMOTE_LCD extern void lcd_remote_update(void); diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index c7eb97aecc..5e4b744c59 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h @@ -62,9 +62,6 @@ struct scrollinfo struct viewport* vp; char linebuffer[9*MAX_PATH/10]; const char *line; -#ifdef HAVE_LCD_CHARCELLS - int len; /* length of line in chars */ -#endif /* rectangle for the line */ int x, y; /* relative to the viewort */ int width, height; -- cgit v1.2.3