Skip to content

Commit a0cb1a5

Browse files
committed
fix #19
1 parent a087212 commit a0cb1a5

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

drawpixels/src/drawpixels.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,13 +1653,6 @@ static int draw_filled_arc_lua(lua_State *L)
16531653
}
16541654
}
16551655

1656-
float center = start + span / 2.0f;
1657-
if (center >= PI_2)
1658-
{
1659-
center -= PI_2;
1660-
}
1661-
draw_line_vu(posx, posy, posx + radius * 2 / 3 * cos(center + M_PI / 2), posy + radius * 2 / 3 * sin(center + M_PI / 2), r, g, b, a, 2);
1662-
16631656
assert(top == lua_gettop(L));
16641657
return 0;
16651658
}
@@ -1737,13 +1730,6 @@ static int draw_gradient_arc_lua(lua_State *L)
17371730
}
17381731
}
17391732

1740-
float center = start + span / 2.0f;
1741-
if (center >= PI_2)
1742-
{
1743-
center -= PI_2;
1744-
}
1745-
draw_gradient_line_vu(posx, posy, posx + radius * 2 / 2.05 * cos(center + M_PI / 2), posy + radius * 2 / 2.05 * sin(center + M_PI / 2), c1, c2, a, 1);
1746-
17471733
assert(top == lua_gettop(L));
17481734
return 0;
17491735
}

example/draw_examples.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ local steps = {
115115
local s = p.slots[10]
116116
local arc_start = 10 / 6 * math.pi
117117
local arc_finish = 5 / 2 * math.pi
118-
drawpixels.filled_arc(buffer_info, s.x, s.y, 55, arc_start, arc_finish, 0, 0, 255, 255)
118+
drawpixels.filled_arc(buffer_info, s.x, s.y, 55, arc_start, arc_finish, 0, 0, 255, 128)
119119
end,
120120
function(buffer_info)
121121
local p = positions(buffer_info)

0 commit comments

Comments
 (0)