diff options
-rw-r--r-- | src/main.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.odin b/src/main.odin index 3dc9b9a..dc8576d 100644 --- a/src/main.odin +++ b/src/main.odin @@ -151,7 +151,7 @@ main :: proc() { DrawRectangle(TIMELINE_START+i32(math.round(day.fractions[j]*f32(width+TIMELINE_END-TIMELINE_START))), DAY_HEIGHT*i32(i+1)-4, - i32(math.round(f32(width+TIMELINE_END-TIMELINE_START)*(day.fractions[j+1]-day.fractions[j]))), + i32(math.round(f32(width+TIMELINE_END-TIMELINE_START)*(day.fractions[j+1]-day.fractions[j])+0.5)), DAY_HEIGHT-1, block_color) } |