diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-12 21:44:01 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-12 21:44:01 +0000 |
commit | 9eed52fa40664819c39fa264cc4b15ea06f9b4e5 (patch) | |
tree | c8c66e44d0144829fa941ab82d7a983b7fe400d1 /src/fe-text/textbuffer-view.h | |
parent | dd37b9ca2c5ea17349a76d96c05eecaa10287d95 (diff) | |
download | irssi-9eed52fa40664819c39fa264cc4b15ea06f9b4e5.zip |
Replaced GList by adding prev/next pointers to LINE_REC. This should make
some things faster and take a bit less memory. Also fixed an evil memory
leak.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1611 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/textbuffer-view.h')
-rw-r--r-- | src/fe-text/textbuffer-view.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/textbuffer-view.h b/src/fe-text/textbuffer-view.h index 54e05686..51973acf 100644 --- a/src/fe-text/textbuffer-view.h +++ b/src/fe-text/textbuffer-view.h @@ -50,11 +50,11 @@ typedef struct { TEXT_BUFFER_CACHE_REC *cache; int ypos; /* cursor position - visible area is 0..height-1 */ - GList *startline; /* line at the top of the screen */ + LINE_REC *startline; /* line at the top of the screen */ int subline; /* number of "real lines" to skip from `startline' */ /* marks the bottom of the text buffer */ - GList *bottom_startline; + LINE_REC *bottom_startline; int bottom_subline; /* how many empty lines are in screen. a screenful when started @@ -86,7 +86,7 @@ void textbuffer_view_resize(TEXT_BUFFER_VIEW_REC *view, int width, int height); void textbuffer_view_clear(TEXT_BUFFER_VIEW_REC *view); #define textbuffer_view_get_lines(view) \ - ((view)->buffer->lines) + ((view)->buffer->first_line) /* Scroll the view up/down */ void textbuffer_view_scroll(TEXT_BUFFER_VIEW_REC *view, int lines); |