summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
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