summaryrefslogtreecommitdiff
path: root/src/dged/buffer.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2025-11-18 17:17:14 +0100
committerAlbert Cervin <albert@acervin.com>2025-11-19 11:06:32 +0100
commitfd5683cdc61efa37a1be7b94901f75c5409d2297 (patch)
treeecc88724fb0c0ac408daea1fca7a69a48416b96f /src/dged/buffer.c
parent9cf86e6dcafc8e7d9a314fb8fdc87347eb00fb2c (diff)
downloaddged-rendering-improvements.tar.gz
dged-rendering-improvements.tar.xz
dged-rendering-improvements.zip
Make sure rendering happens at least 7ms apartrendering-improvements
Running a lot faster just causes tearing.
Diffstat (limited to 'src/dged/buffer.c')
-rw-r--r--src/dged/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dged/buffer.c b/src/dged/buffer.c
index d03f3ad..7eb787d 100644
--- a/src/dged/buffer.c
+++ b/src/dged/buffer.c
@@ -1301,6 +1301,8 @@ void render_line(struct text_chunk *line, void *userdata) {
command_list_set_show_whitespace(cmdbuf->cmds, false);
if (drawn_coli < cmdbuf->width) {
+ // TODO: should really be (causes some issues in popups)
+ // command_list_clear_line(cmdbuf->cmds, drawn_coli, visual_line);
command_list_draw_repeated(cmdbuf->cmds, drawn_coli, visual_line, ' ',
cmdbuf->width - drawn_coli);
}