diff options
| author | Albert Cervin <albert@acervin.com> | 2023-07-12 16:20:50 +0200 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2023-10-19 22:41:33 +0200 |
| commit | 54c9b4b533210b77be998f458ff96bdc54272f64 (patch) | |
| tree | eb434343bb1083172af50b7372d1e2745af00f8f /src/dged/display.h | |
| parent | 3a8ae83aa13636679c151027cace905fa87ebd8e (diff) | |
| download | dged-54c9b4b533210b77be998f458ff96bdc54272f64.tar.gz dged-54c9b4b533210b77be998f458ff96bdc54272f64.tar.xz dged-54c9b4b533210b77be998f458ff96bdc54272f64.zip | |
big buffer/buffer_view rework
A buffer is only the text and the corresponding operation. A buffer view
holds information about scroll, dot and mark positions. One way to think
about it is that a buffer is stateless whereas a buffer view is stateful.
Diffstat (limited to 'src/dged/display.h')
| -rw-r--r-- | src/dged/display.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dged/display.h b/src/dged/display.h index 14dd246..2fc807b 100644 --- a/src/dged/display.h +++ b/src/dged/display.h @@ -205,8 +205,11 @@ void command_list_draw_text_copy(struct command_list *list, uint32_t col, * @param list Command list to record draw command in. * @param col Column to start text at. * @param row Row to start text at. - * @param c Byte to repeat. + * @param c Character to repeat. * @param nrepeat Number of times to repeat byte. */ void command_list_draw_repeated(struct command_list *list, uint32_t col, - uint32_t row, uint8_t c, uint32_t nrepeat); + uint32_t row, int32_t c, uint32_t nrepeat); + +void command_list_draw_command_list(struct command_list *list, + struct command_list *to_draw); |
