aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-01 12:18:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-01 20:09:38 +0000
commit167078c0767099c7fe42dc7e084ee5d8f75ddd9a (patch)
tree888c8658297ee87f7186c82bd5edbf1a303d185b
parentbox-drawing: LIGHT ARC: pixel-perfect (diff)
box-drawing: LIGHT ARC: no need to do floating point since we’re truncating
-rw-r--r--box-drawing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/box-drawing.c b/box-drawing.c
index d2666d65..3dd27d13 100644
--- a/box-drawing.c
+++ b/box-drawing.c
@@ -1072,7 +1072,7 @@ draw_box_drawings_light_arc(wchar_t wc, uint8_t *buf, int width, int height, int
end_y = hh;
c1_x = hw;
- c1_y = 3. * height / 4.;
+ c1_y = 3 * height / 4;
c2_x = hw;
c2_y = hh;
@@ -1084,7 +1084,7 @@ draw_box_drawings_light_arc(wchar_t wc, uint8_t *buf, int width, int height, int
end_y = hh;
c1_x = hw;
- c1_y = 3. * height / 4.;
+ c1_y = 3 * height / 4;
c2_x = hw;
c2_y = hh;
@@ -1096,7 +1096,7 @@ draw_box_drawings_light_arc(wchar_t wc, uint8_t *buf, int width, int height, int
end_y = hh;
c1_x = hw;
- c1_y = height / 4.;
+ c1_y = height / 4;
c2_x = hw;
c2_y = hh;
@@ -1110,7 +1110,7 @@ draw_box_drawings_light_arc(wchar_t wc, uint8_t *buf, int width, int height, int
end_y = hh;
c1_x = hw;
- c1_y = height / 4.;
+ c1_y = height / 4;
c2_x = hw;
c2_y = hh;