Skip to content

Commit

Permalink
Fixed|libgui: Vertex builder position accuracy issue in makeRing
Browse files Browse the repository at this point in the history
Make sure the ring starts and ends at the exact same position.
  • Loading branch information
skyjake committed Mar 16, 2014
1 parent 0563d9c commit e24774a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/libgui/include/de/gui/vertexbuilder.h
Expand Up @@ -95,7 +95,7 @@ struct VertexBuilder
VertexType v;
v.rgba = color;
for(int i = 0; i <= divisions; ++i) {
float const ang = 2 * PI * i / divisions;
float const ang = 2 * PI * (i == divisions? 0 : i) / divisions;
Vector2f r(cos(ang), sin(ang));
// Outer.
v.pos = center + r * outerRadius;
Expand Down

0 comments on commit e24774a

Please sign in to comment.