summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-07-29 13:08:19 -0400
committerpommicket <pommicket@gmail.com>2022-07-29 13:08:19 -0400
commit00fce97eb96fc2f1c1bfd8daf4f795ff36cf98c0 (patch)
treea02ad8d577df3f9ab89eb07255ccdf24db85fccf /buffer.c
parent8b970f5b47ac14d6e55b0caf5cfe7890ca17d23b (diff)
changed text render pos to double to fix extremely long lines
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index 50a75fe..e1498ef 100644
--- a/buffer.c
+++ b/buffer.c
@@ -2383,7 +2383,7 @@ void buffer_render(TextBuffer *buffer, Rect r) {
// what x coordinate to start rendering the text from
- float render_start_x = x1 - (float)buffer->scroll_x * char_width;
+ double render_start_x = x1 - (double)buffer->scroll_x * char_width;
u32 column = 0;
if (buffer->selection) { // draw selection