summaryrefslogtreecommitdiff
path: root/src/display.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-01-22 16:44:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-01-22 16:44:53 +0100
commit84758ec540877a79d2c9a4403b2023aa5d31eb17 (patch)
treeb5e75c7ccc15fcc1cf4e07a5ebcce4bdbe4f025e /src/display.cc
parentb71f23b93acdd3aa28066bd6edc7bcb63d518bfe (diff)
display: rename *scroll* to *update* (would be confusing for animations otherwise)
Diffstat (limited to 'src/display.cc')
-rw-r--r--src/display.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/display.cc b/src/display.cc
index 82c5020..2059c9b 100644
--- a/src/display.cc
+++ b/src/display.cc
@@ -12,7 +12,7 @@ Display display;
Display::Display()
{
char_pos = -1;
- scroll_delay = 400;
+ update_delay = 400;
}
void Display::disable()
@@ -49,17 +49,17 @@ void Display::multiplex()
if (++active_col == 8)
active_col = 0;
- if (++scroll == scroll_delay) {
+ if (++scroll == update_delay) {
scroll = 0;
- need_scroll = 1;
+ need_update = 1;
}
}
-void Display::scroll() {
+void Display::update() {
uint8_t i, glyph_len;
uint8_t *glyph_addr;
- if (need_scroll) {
- need_scroll = 0;
+ if (need_update) {
+ need_update = 0;
for (i = 0; i < 7; i++) {
disp_buf[i] = disp_buf[i+1];