diff options
author | San Jacobs | 2023-05-23 15:20:51 +0200 |
---|---|---|
committer | San Jacobs | 2023-05-23 15:20:51 +0200 |
commit | db68d93f970a9c32a29b5efd57f53ea47d2add4e (patch) | |
tree | d4c18cabdcfe52ce28b3772560857ee445826daa | |
parent | f047b06ea71ce015eea5747cc5c04008f5bb948a (diff) | |
download | satscalc-db68d93f970a9c32a29b5efd57f53ea47d2add4e.tar.gz satscalc-db68d93f970a9c32a29b5efd57f53ea47d2add4e.tar.bz2 satscalc-db68d93f970a9c32a29b5efd57f53ea47d2add4e.zip |
Fixed aliasing gaps
-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) } |