mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
box-drawing: LIGHT ARC: no need to do floating point since we’re truncating
This commit is contained in:
parent
56e947bb44
commit
167078c076
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue