diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-05-04 18:38:36 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-05-04 18:38:36 -0400 |
commit | 3c4d1c9d43c80abf5a938d1f5416e7a9d4f339dd (patch) | |
tree | 90771e9240990c42df0b1c72faee74469c69641b /src/display.c | |
parent | 24fba6a5e6371d5e79c63c776fd4d7ee34e57f6f (diff) | |
download | runes-3c4d1c9d43c80abf5a938d1f5416e7a9d4f339dd.tar.gz runes-3c4d1c9d43c80abf5a938d1f5416e7a9d4f339dd.zip |
implement scrolling
Diffstat (limited to 'src/display.c')
-rw-r--r-- | src/display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c index 185ca7c..8ecce16 100644 --- a/src/display.c +++ b/src/display.c @@ -179,7 +179,7 @@ static void runes_display_recalculate_font_metrics(RunesTerm *t) static int runes_display_draw_cell(RunesTerm *t, int row, int col) { - struct runes_cell *cell = &t->scr.rows[row + t->scr.row_top].cells[col]; + struct runes_cell *cell = &t->scr.rows[row + t->scr.row_top - t->scr.row_visible_offset].cells[col]; cairo_pattern_t *bg = NULL, *fg = NULL; int bg_is_custom = 0, fg_is_custom = 0; |