@@ -61,9 +61,9 @@ void LinePrimitive::Draw(BITMAP* drawScreen, const Vector& targetPos) {
61
61
void ArcPrimitive::Draw (BITMAP* drawScreen, const Vector& targetPos) {
62
62
Vector drawStart = WrapCoordinates (targetPos, m_StartPos);
63
63
if (m_Thickness > 1 ) {
64
- DrawRing (drawStart, m_Radius - (m_Thickness / 2 ), m_Radius + (m_Thickness / 2 ), m_StartAngle, m_EndAngle, std::abs (m_EndAngle - m_StartAngle), {m_Color, 0 , 0 , 255 });
64
+ DrawRing (drawStart, m_Radius - (m_Thickness / 2 . 0f ), m_Radius + (m_Thickness / 2 . 0f ), m_StartAngle, m_EndAngle, std::abs (m_EndAngle - m_StartAngle), {m_Color, 0 , 0 , 255 });
65
65
} else {
66
- DrawCircleSector (drawStart, m_Radius, m_StartAngle, m_EndAngle, 0 , {m_Color, 0 , 0 , 255 });
66
+ DrawRing (drawStart, m_Radius - 0 . 5f , m_Radius + 0 . 5f , m_StartAngle, m_EndAngle, std::abs (m_EndAngle - m_StartAngle) , {m_Color, 0 , 0 , 255 });
67
67
}
68
68
}
69
69
@@ -98,6 +98,7 @@ void RoundedBoxPrimitive::Draw(BITMAP* drawScreen, const Vector& targetPos) {
98
98
if (m_StartPos.m_Y > m_EndPos.m_Y ) {
99
99
std::swap (m_StartPos.m_Y , m_EndPos.m_Y );
100
100
}
101
+
101
102
Vector drawStart = WrapCoordinates (targetPos, m_StartPos);
102
103
Vector drawEnd = WrapCoordinates (targetPos, m_EndPos);
103
104
Vector ringCornerTopLeft (drawStart.GetFloorIntX () + m_CornerRadius, drawStart.GetFloorIntY () + m_CornerRadius);
0 commit comments