From 3c4d1c9d43c80abf5a938d1f5416e7a9d4f339dd Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 4 May 2014 18:38:36 -0400 Subject: implement scrolling --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/display.c') 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; -- cgit v1.2.3-54-g00ecf