diff options
author | pommicket <pommicket@gmail.com> | 2022-07-29 13:08:19 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-07-29 13:08:19 -0400 |
commit | 00fce97eb96fc2f1c1bfd8daf4f795ff36cf98c0 (patch) | |
tree | a02ad8d577df3f9ab89eb07255ccdf24db85fccf /buffer.c | |
parent | 8b970f5b47ac14d6e55b0caf5cfe7890ca17d23b (diff) |
changed text render pos to double to fix extremely long lines
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |