diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-31 09:58:49 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-31 09:58:49 +0000 |
commit | 54ea2e435e1a5688de4e4dcf551a1fc9c1db323f (patch) | |
tree | e8ee4e55a20c872a6c0deff554734038c35dc661 /firmware/drivers/lcd-charset-player.c | |
parent | 6186b556bdbe97bc3c50dd8feb970590bec2053c (diff) | |
download | rockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.tar.gz rockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.zip |
Charcell lcd driver: Preparations for switching to non-immediate LCD updates, using lcd_update() like on bitmap targets. * Added proper clipping. * Simplified simulator code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12979 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-charset-player.c')
-rw-r--r-- | firmware/drivers/lcd-charset-player.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-charset-player.c b/firmware/drivers/lcd-charset-player.c index 24c0f65ee0..8218535ac2 100644 --- a/firmware/drivers/lcd-charset-player.c +++ b/firmware/drivers/lcd-charset-player.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include "lcd-charcell.h" | 23 | #include "lcd-charcell.h" |
24 | 24 | ||
25 | int hw_pattern_count; /* actual number of user-definable hw patterns */ | 25 | int lcd_pattern_count; /* actual number of user-definable hw patterns */ |
26 | 26 | ||
27 | const struct xchar_info *xchar_info; | 27 | const struct xchar_info *xchar_info; |
28 | int xchar_info_size; /* number of entries */ | 28 | int xchar_info_size; /* number of entries */ |
@@ -1237,13 +1237,13 @@ void lcd_charset_init(void) | |||
1237 | { | 1237 | { |
1238 | if (is_new_player()) | 1238 | if (is_new_player()) |
1239 | { | 1239 | { |
1240 | hw_pattern_count = 8; | 1240 | lcd_pattern_count = 8; |
1241 | xchar_info = xchar_info_newlcd; | 1241 | xchar_info = xchar_info_newlcd; |
1242 | xchar_info_size = sizeof(xchar_info_newlcd)/sizeof(struct xchar_info); | 1242 | xchar_info_size = sizeof(xchar_info_newlcd)/sizeof(struct xchar_info); |
1243 | } | 1243 | } |
1244 | else /* old lcd */ | 1244 | else /* old lcd */ |
1245 | { | 1245 | { |
1246 | hw_pattern_count = 4; | 1246 | lcd_pattern_count = 4; |
1247 | xchar_info = xchar_info_oldlcd; | 1247 | xchar_info = xchar_info_oldlcd; |
1248 | xchar_info_size = sizeof(xchar_info_oldlcd)/sizeof(struct xchar_info); | 1248 | xchar_info_size = sizeof(xchar_info_oldlcd)/sizeof(struct xchar_info); |
1249 | } | 1249 | } |